Class CacheBuilder<K,V>
java.lang.Object
io.helidon.integrations.microstream.cache.CacheBuilder<K,V>
- Type Parameters:
K
- type of the cache keyV
- type of the cache value
Deprecated, for removal: This API element is subject to removal in a future version.
Microstream is renamed to Eclipse store and no longer updated
Builder for a Microstream - JCache instance.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CacheBuilder
(Class<K> keyType, Class<V> valueType) Deprecated, for removal: This API element is subject to removal in a future version.protected
CacheBuilder
(one.microstream.cache.types.CacheConfiguration<K, V> configuration) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Set the name of the cache.static <K,
V> CacheBuilder <K, V> builder
(one.microstream.cache.types.CacheConfiguration<K, V> configuration, Class<K> keyType, Class<V> valueType) Deprecated, for removal: This API element is subject to removal in a future version.Create a new cache builder using the provided microstream cache configuration.static one.microstream.cache.types.Cache
<?, ?> Deprecated, for removal: This API element is subject to removal in a future version.Create a named cache using the provided helidon configuration.
-
Constructor Details
-
CacheBuilder
Deprecated, for removal: This API element is subject to removal in a future version. -
CacheBuilder
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
builder
public static <K,V> CacheBuilder<K,V> builder(one.microstream.cache.types.CacheConfiguration<K, V> configuration, Class<K> keyType, Class<V> valueType) Deprecated, for removal: This API element is subject to removal in a future version.Create a new cache builder using the provided microstream cache configuration.- Type Parameters:
K
- type of the cache keyV
- type of the cache value- Parameters:
configuration
- CacheConfigurationkeyType
- class of the cache keyvalueType
- class of the cache key- Returns:
- cache builder
-
build
Deprecated, for removal: This API element is subject to removal in a future version.Set the name of the cache.- Parameters:
name
- the cache name- Returns:
- the new cache instance
-
create
public static one.microstream.cache.types.Cache<?,?> create(String name, Config config, Class<?> keyType, Class<?> valueType) Deprecated, for removal: This API element is subject to removal in a future version.Create a named cache using the provided helidon configuration.- Parameters:
name
- the cache nameconfig
- the helidon configurationkeyType
- class of the cache keyvalueType
- class of the cache key- Returns:
- the new cache instance
-