Class RemoteCacheEntry<T extends Cacheable>
java.lang.Object
org.deltava.util.cache.CacheEntry<T>
org.deltava.util.cache.RemoteCacheEntry<T>
- Type Parameters:
T
- the cacheable object type
- All Implemented Interfaces:
Serializable
,Comparable<CacheEntry<T>>
A cache entry stored in a remote (Redis/memcached) cache.
- Since:
- 6.1
- Version:
- 7.3
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.util.cache.CacheEntry
_createExpire
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteCacheEntry
(String key, T entry) Creates a new cache entry.RemoteCacheEntry
(T entry) Creates a new cache entry. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the creation date of the cache entry.
-
Constructor Details
-
RemoteCacheEntry
-
RemoteCacheEntry
-
-
Method Details
-
getCreatedOn
public long getCreatedOn()Returns the creation date of the cache entry.- Returns:
- the creation date
-