Handling of cache entry meta data (creation/ last access time, lifespan, maxIdle) in JDG

Solution Verified - Updated -

Issue

  • Is it possible to retrieve the creation date or the last access time for a cache entry in JDG?
  • We want to read the creation date of an entry in a cache how can I get this?
  • If the AdvancedCache and retrieve a CacheEntry object I see a method getCreated() but it always return -1

Environment

  • Red Hat JBoss Data Grid (JDG)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.