private static class Cache.CacheValue<K,V> extends Object
Modifier and Type | Field and Description |
---|---|
private Cache.CacheKey<K> |
key |
private long |
sizeBytes |
private V |
value |
Constructor and Description |
---|
CacheValue(long sizeBytes,
V value,
Cache.CacheKey<K> key) |
Modifier and Type | Method and Description |
---|---|
boolean |
expired(long ttl) |
Cache.CacheKey<K> |
getKey() |
long |
sizeBytes() |
String |
toString() |
V |
value() |
private long sizeBytes
private V value
private Cache.CacheKey<K> key
public CacheValue(long sizeBytes, V value, Cache.CacheKey<K> key)
Copyright © 2018. All rights reserved.