Class CacheBackingStore<V>

java.lang.Object
net.bluemind.common.cache.persistence.CacheBackingStore<V>

public class CacheBackingStore<V> extends Object
  • Constructor Details

    • CacheBackingStore

      public CacheBackingStore(com.github.benmanes.caffeine.cache.Caffeine<Object,Object> cache, String storePath, Function<V,io.vertx.core.json.JsonObject> toJson, Function<io.vertx.core.json.JsonObject,V> fromJson)
    • CacheBackingStore

      public CacheBackingStore(com.github.benmanes.caffeine.cache.Caffeine<Object,Object> cache, String storePath, Function<V,io.vertx.core.json.JsonObject> toJson, Function<io.vertx.core.json.JsonObject,V> fromJson, Consumer<String> notifyUnkonwnSessionRemovalListeners)
  • Method Details

    • getIfPresentUnsafe

      public V getIfPresentUnsafe(String key)
    • getIfPresent

      public V getIfPresent(String key)
    • put

      public void put(String key, V value)
    • invalidate

      public void invalidate(String key)
    • asMap

      public Map<String,V> asMap()
    • getCache

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

      public void cleanUp()