public class CacheEntryWriterLoader<V>
extends java.lang.Object
implements com.github.benmanes.caffeine.cache.CacheWriter<java.lang.String,V>
Constructor and Description |
---|
CacheEntryWriterLoader(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 |
---|---|
void |
cleanUp(com.github.benmanes.caffeine.cache.Cache<java.lang.String,V> cache) |
void |
delete(java.lang.String key,
V value,
com.github.benmanes.caffeine.cache.RemovalCause cause) |
V |
load(java.lang.String key) |
void |
write(java.lang.String key,
V value) |
public void write(java.lang.String key, V value)
write
in interface com.github.benmanes.caffeine.cache.CacheWriter<java.lang.String,V>
public void delete(java.lang.String key, V value, com.github.benmanes.caffeine.cache.RemovalCause cause)
delete
in interface com.github.benmanes.caffeine.cache.CacheWriter<java.lang.String,V>
public V load(java.lang.String key)
public void cleanUp(com.github.benmanes.caffeine.cache.Cache<java.lang.String,V> cache)
Copyright © 2021. All Rights Reserved.