public class CaffeineVirAttrCache extends Object implements VirAttrCache
Constructor and Description |
---|
CaffeineVirAttrCache() |
Modifier and Type | Method and 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) |
public void setCacheSpec(String cacheSpec)
setCacheSpec
in interface VirAttrCache
public void expire(VirAttrCacheKey key)
VirAttrCache
expire
in interface VirAttrCache
key
- cache keypublic VirAttrCacheValue get(VirAttrCacheKey key)
VirAttrCache
get
in interface VirAttrCache
key
- cache keypublic VirAttrCacheValue put(VirAttrCacheKey key, VirAttrCacheValue value)
VirAttrCache
put
in interface VirAttrCache
key
- cache keyvalue
- virtual attribute valuesCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.