Class SimpleCache

java.lang.Object
com.turbospaces.ebean.SimpleCache
All Implemented Interfaces:
LocalCache, io.ebean.cache.ServerCache, Supplier<com.google.common.cache.Cache<Object,Object>>

public class SimpleCache extends Object implements LocalCache, Supplier<com.google.common.cache.Cache<Object,Object>>
  • Constructor Details

    • SimpleCache

      public SimpleCache(String cacheKey)
  • Method Details

    • get

      public Object get(Object id)
      Specified by:
      get in interface io.ebean.cache.ServerCache
    • put

      public void put(Object id, Object value)
      Specified by:
      put in interface io.ebean.cache.ServerCache
    • remove

      public void remove(Object id)
      Specified by:
      remove in interface io.ebean.cache.ServerCache
    • size

      public int size()
      Specified by:
      size in interface io.ebean.cache.ServerCache
    • hitRatio

      public int hitRatio()
      Specified by:
      hitRatio in interface io.ebean.cache.ServerCache
    • statistics

      public io.ebean.cache.ServerCacheStatistics statistics(boolean reset)
      Specified by:
      statistics in interface io.ebean.cache.ServerCache
    • clear

      public void clear()
      Specified by:
      clear in interface io.ebean.cache.ServerCache
    • onClear

      public int onClear()
      Specified by:
      onClear in interface LocalCache
    • get

      public com.google.common.cache.Cache<Object,Object> get()
      Specified by:
      get in interface Supplier<com.google.common.cache.Cache<Object,Object>>
    • toString

      public String toString()
      Overrides:
      toString in class Object