java.lang.Object
net.bluemind.common.cache.persistence.CacheEntryWriterLoader<V>
- All Implemented Interfaces:
com.github.benmanes.caffeine.cache.CacheWriter<String,V>
public class CacheEntryWriterLoader<V>
extends Object
implements com.github.benmanes.caffeine.cache.CacheWriter<String,V>
-
Constructor Summary
Constructors
-
Method Summary
void
void
delete(String key,
V value,
com.github.benmanes.caffeine.cache.RemovalCause cause)
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CacheEntryWriterLoader
public CacheEntryWriterLoader(String storePath,
Function<V,io.vertx.core.json.JsonObject> toJson,
Function<io.vertx.core.json.JsonObject,V> fromJson)
-
Method Details
-
write
public void write(String key,
V value)
- Specified by:
write
in interface com.github.benmanes.caffeine.cache.CacheWriter<String,V>
-
delete
public void delete(String key,
V value,
com.github.benmanes.caffeine.cache.RemovalCause cause)
- Specified by:
delete
in interface com.github.benmanes.caffeine.cache.CacheWriter<String,V>
-
-
-
cleanUp
public void cleanUp(com.github.benmanes.caffeine.cache.Cache<String,V> cache)