Class CacheEntryWriterLoader<V>

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 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>
    • safeLoad

      public V safeLoad(String key)
    • load

      public V load(String key)
    • cleanUp

      public void cleanUp(com.github.benmanes.caffeine.cache.Cache<String,V> cache)