Interface VirAttrCache
-
- All Known Implementing Classes:
CaffeineVirAttrCache,DisabledVirAttrCache
public interface VirAttrCacheVirtual Attribute Value cache.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexpire(VirAttrCacheKey key)Force entry expiring.VirAttrCacheValueget(VirAttrCacheKey key)Retrieve cached value.VirAttrCacheValueput(VirAttrCacheKey key, VirAttrCacheValue value)Cache virtual attribute values.voidsetCacheSpec(String cacheSpec)
-
-
-
Method Detail
-
setCacheSpec
void setCacheSpec(String cacheSpec)
-
expire
void expire(VirAttrCacheKey key)
Force entry expiring.- Parameters:
key- cache key
-
get
VirAttrCacheValue get(VirAttrCacheKey key)
Retrieve cached value. Return null in case of virtual attribute not cached.- Parameters:
key- cache key- Returns:
- cached values or null if virtual attribute is not cached.
-
put
VirAttrCacheValue put(VirAttrCacheKey key, VirAttrCacheValue value)
Cache virtual attribute values.- Parameters:
key- cache keyvalue- virtual attribute values- Returns:
- value after caching
-
-