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>>

class RemoteCacheEntry<T extends Cacheable> extends CacheEntry<T>
A cache entry stored in a remote (Redis/memcached) cache.
Since:
6.1
Version:
7.3
Author:
Luke
  • Constructor Details

    • RemoteCacheEntry

      public RemoteCacheEntry(T entry)
      Creates a new cache entry.
      Parameters:
      entry - the cache object
    • RemoteCacheEntry

      public RemoteCacheEntry(String key, T entry)
      Creates a new cache entry.
      Parameters:
      key - the cache key
      entry - the cache object
  • Method Details

    • getCreatedOn

      public long getCreatedOn()
      Returns the creation date of the cache entry.
      Returns:
      the creation date