Interface VirAttrCache
-
- All Known Implementing Classes:
CaffeineVirAttrCache
,DisabledVirAttrCache
public interface VirAttrCache
Virtual Attribute Value cache.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
expire(VirAttrCacheKey key)
Force entry expiring.VirAttrCacheValue
get(VirAttrCacheKey key)
Retrieve cached value.VirAttrCacheValue
put(VirAttrCacheKey key, VirAttrCacheValue value)
Cache virtual attribute values.void
setCacheSpec(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
-
-