Package org.redisson.cache
Class StdCachedValue<K,V>
- java.lang.Object
-
- org.redisson.cache.StdCachedValue<K,V>
-
- All Implemented Interfaces:
CachedValue<K,V>
,ExpirableValue
- Direct Known Subclasses:
LFUCacheMap.LFUCachedValue
,ReferenceCachedValue
public class StdCachedValue<K,V> extends Object implements CachedValue<K,V>
Created by jribble on 2/20/17.
-
-
Constructor Summary
Constructors Constructor Description StdCachedValue(K key, V value, long ttl, long maxIdleTime)
-
-
-
Method Detail
-
isExpired
public boolean isExpired()
- Specified by:
isExpired
in interfaceExpirableValue
-
getKey
public K getKey()
- Specified by:
getKey
in interfaceCachedValue<K,V>
-
getValue
public V getValue()
- Specified by:
getValue
in interfaceCachedValue<K,V>
-
-