Class MockCacheManager

java.lang.Object
com.turbospaces.boot.AbstractBootstrapAware
com.turbospaces.ebean.MockCacheManager
All Implemented Interfaces:
com.turbospaces.boot.BootstrapAware, CacheManager, io.ebean.cache.ServerCacheFactory, io.ebean.cache.ServerCachePlugin, org.springframework.beans.factory.Aware

public class MockCacheManager extends com.turbospaces.boot.AbstractBootstrapAware implements CacheManager
  • Constructor Details

    • MockCacheManager

      public MockCacheManager()
  • Method Details

    • setBackgroundExecutor

      public void setBackgroundExecutor(io.ebean.BackgroundExecutor executor)
      Specified by:
      setBackgroundExecutor in interface CacheManager
    • create

      public io.ebean.cache.ServerCacheFactory create(io.ebean.config.DatabaseConfig config, io.ebean.BackgroundExecutor backgroupExecutor)
      Specified by:
      create in interface io.ebean.cache.ServerCachePlugin
    • createCacheNotify

      public io.ebean.cache.ServerCacheNotify createCacheNotify(io.ebean.cache.ServerCacheNotify listener)
      Specified by:
      createCacheNotify in interface io.ebean.cache.ServerCacheFactory
    • createSimpleCache

      public SimpleCache createSimpleCache(String name)
      Specified by:
      createSimpleCache in interface CacheManager
    • createCache

      public io.ebean.cache.ServerCache createCache(io.ebean.cache.ServerCacheConfig config)
      Specified by:
      createCache in interface io.ebean.cache.ServerCacheFactory
    • getCache

      public io.ebean.cache.ServerCache getCache(String string)
      Specified by:
      getCache in interface CacheManager
    • clearAllLocal

      public void clearAllLocal()
      Specified by:
      clearAllLocal in interface CacheManager
    • clearAllSimple

      public void clearAllSimple()
      Specified by:
      clearAllSimple in interface CacheManager
    • clearAll

      public void clearAll(boolean preserveSimple)
      Specified by:
      clearAll in interface CacheManager