org.xwiki.cache.oscache.internal
Class OSCacheCacheEntry<T>
java.lang.Object
org.xwiki.cache.oscache.internal.OSCacheCacheEntry<T>
- Type Parameters:
T
- the class of the data stored in the cache.
- All Implemented Interfaces:
- CacheEntry<T>
public class OSCacheCacheEntry<T>
- extends Object
- implements CacheEntry<T>
Implements CacheEntry
based on OSCache.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSCacheCacheEntry
public OSCacheCacheEntry(OSCacheCache<T> cache,
CacheEntry entry)
- Parameters:
cache
- the cache where this entry comes from.entry
- the OSCache cache entry.
getCache
public Cache<T> getCache()
- Specified by:
getCache
in interface CacheEntry<T>
- Returns:
- the cache where this entry is stored.
getValue
public T getValue()
- Specified by:
getValue
in interface CacheEntry<T>
- Returns:
- the value of this cache entry.
getKey
public String getKey()
- Specified by:
getKey
in interface CacheEntry<T>
- Returns:
- the associated key used to access the value in the cache.