Package | Description |
---|---|
org.cache2k |
API package for cache2k Java caching library.
|
org.cache2k.configuration |
The cache configuration as a Java bean and support types.
|
org.cache2k.jcache |
Support for using the JCache API with cache2k, that allows additional configuration.
|
org.cache2k.spi |
Service provider interface that is used by the cache2k implementation.
|
Modifier and Type | Method and Description |
---|---|
Cache2kConfiguration<K,V> |
Cache2kBuilder.toConfiguration()
Returns the configuration object this builder operates on.
|
Modifier and Type | Method and Description |
---|---|
abstract <K,V> Cache<K,V> |
CacheManager.createCache(Cache2kConfiguration<K,V> cfg)
Create a new cache from the configuration.
|
static <K,T> Cache2kBuilder<K,T> |
Cache2kBuilder.of(Cache2kConfiguration<K,T> c)
Create a builder from the configuration.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> Cache2kConfiguration<K,V> |
Cache2kConfiguration.of(CacheType<K> keyType,
CacheType<V> valueType)
Construct a config instance setting the type parameters and returning a
proper generic type.
|
static <K,V> Cache2kConfiguration<K,V> |
Cache2kConfiguration.of(CacheType<K> keyType,
Class<V> valueType)
Construct a config instance setting the type parameters and returning a
proper generic type.
|
static <K,V> Cache2kConfiguration<K,V> |
Cache2kConfiguration.of(Class<K> keyType,
CacheType<V> valueType)
Construct a config instance setting the type parameters and returning a
proper generic type.
|
static <K,V> Cache2kConfiguration<K,V> |
Cache2kConfiguration.of(Class<K> keyType,
Class<V> valueType)
Construct a config instance setting the type parameters and returning a
proper generic type.
|
Modifier and Type | Method and Description |
---|---|
Cache2kConfiguration<K,V> |
ExtendedMutableConfiguration.getCache2kConfiguration() |
Cache2kConfiguration<K,V> |
ExtendedConfiguration.getCache2kConfiguration()
Retrieve the extended cache2k configuration.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> ExtendedMutableConfiguration<K,V> |
ExtendedMutableConfiguration.of(Cache2kConfiguration<K,V> configuration) |
void |
ExtendedMutableConfiguration.setCache2kConfiguration(Cache2kConfiguration<K,V> _cache2kConfiguration) |
Modifier and Type | Method and Description |
---|---|
Cache2kConfiguration |
Cache2kCoreProvider.getDefaultConfiguration(CacheManager m)
Return the effective default configuration for this manager.
|
Modifier and Type | Method and Description |
---|---|
<K,V> Cache<K,V> |
Cache2kCoreProvider.createCache(CacheManager m,
Cache2kConfiguration<K,V> cfg)
Create a cache, apply external configuration before creating it.
|
cache2k API documentation. Copyright © 2000–2020 headissue GmbH, Munich.