public class CacheConfiguration extends Object
Cache2kBuilder.
By rights, this should be something in the actual cache2k library but this is easy to embed into other config information
| Constructor and Description |
|---|
CacheConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> org.cache2k.Cache2kBuilder<K,V> |
builder(Class<K> keyClass,
Class<V> valueClass)
Construct a cache builder out of the information in this configuration.
|
public <K,V> org.cache2k.Cache2kBuilder<K,V> builder(Class<K> keyClass, Class<V> valueClass)
The cache builder can be extended or overridden before the cahce is constructed.
K - The key typeV - The value typekeyClass - The type of key for the cachevalueClass - The type of value for the cacheCopyright © 2021 Atlas of Living Australia. All rights reserved.