Class DebugCacheStatistics.CacheEntry
java.lang.Object
com.foreach.across.modules.debugweb.events.DebugCacheStatistics.CacheEntry
- Enclosing class:
- DebugCacheStatistics<T extends org.springframework.cache.Cache>
Represents a single entry in the cache.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CacheEntry
public CacheEntry(Object key, Optional<Object> value, Duration age, Duration lastAccessed, Long hits) Creates a newCacheEntry
instance.- Parameters:
key
- Key of the cache entry.value
- Value of the cache entry. Anull
value means the value cannot be resolved, whereas anOptional.empty()
value means the stored value isnull
.age
- How long this item has been in the cache.lastAccessed
- How long ago this item was last accessed.hits
- Successful cache requests for this item.
-
-
Method Details
-
builder
-
getKey
Key of the cache entry. -
getValue
Value of the cache entry. Anull
value means the value cannot be resolved, whereas anOptional.empty()
value means the stored value isnull
. -
getAge
How long this item has been in the cache. -
getLastAccessed
How long ago this item was last accessed. -
getHits
Successful cache requests for this item.
-