public class CacheBackingStore<V>
extends java.lang.Object
Constructor and Description |
---|
CacheBackingStore(com.github.benmanes.caffeine.cache.Caffeine<java.lang.Object,java.lang.Object> cache,
java.lang.String storePath,
java.util.function.Function<V,io.vertx.core.json.JsonObject> toJson,
java.util.function.Function<io.vertx.core.json.JsonObject,V> fromJson,
java.util.Optional<java.util.function.Predicate<V>> ignore) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,V> |
asMap() |
void |
cleanUp() |
void |
cleanUpStore() |
com.github.benmanes.caffeine.cache.Cache<java.lang.String,V> |
getCache() |
V |
getIfPresent(java.lang.String key) |
void |
invalidate(java.lang.String key) |
void |
put(java.lang.String key,
V value) |
public CacheBackingStore(com.github.benmanes.caffeine.cache.Caffeine<java.lang.Object,java.lang.Object> cache, java.lang.String storePath, java.util.function.Function<V,io.vertx.core.json.JsonObject> toJson, java.util.function.Function<io.vertx.core.json.JsonObject,V> fromJson, java.util.Optional<java.util.function.Predicate<V>> ignore)
public V getIfPresent(java.lang.String key)
public void put(java.lang.String key, V value)
public void invalidate(java.lang.String key)
public java.util.Map<java.lang.String,V> asMap()
public com.github.benmanes.caffeine.cache.Cache<java.lang.String,V> getCache()
public void cleanUp()
public void cleanUpStore()
Copyright © 2021. All Rights Reserved.