Class DummyCache

java.lang.Object
com.peterphi.std.guice.common.cached.util.DummyCache
All Implemented Interfaces:
com.google.common.cache.Cache<Object,Object>

public abstract class DummyCache extends Object implements com.google.common.cache.Cache<Object,Object>
A dummy cache which can be used to hook into a cache clear operation
  • Constructor Details

    • DummyCache

      public DummyCache()
  • Method Details

    • getIfPresent

      public @Nullable Object getIfPresent(Object key)
      Specified by:
      getIfPresent in interface com.google.common.cache.Cache<Object,Object>
    • get

      public Object get(Object key, Callable loader) throws ExecutionException
      Specified by:
      get in interface com.google.common.cache.Cache<Object,Object>
      Throws:
      ExecutionException
    • put

      public void put(Object key, Object value)
      Specified by:
      put in interface com.google.common.cache.Cache<Object,Object>
    • invalidate

      public void invalidate(Object key)
      Specified by:
      invalidate in interface com.google.common.cache.Cache<Object,Object>
    • invalidateAll

      public abstract void invalidateAll()
      Specified by:
      invalidateAll in interface com.google.common.cache.Cache<Object,Object>
    • size

      public long size()
      Specified by:
      size in interface com.google.common.cache.Cache<Object,Object>
    • stats

      public com.google.common.cache.CacheStats stats()
      Specified by:
      stats in interface com.google.common.cache.Cache<Object,Object>
    • asMap

      public ConcurrentMap asMap()
      Specified by:
      asMap in interface com.google.common.cache.Cache<Object,Object>
    • cleanUp

      public void cleanUp()
      Specified by:
      cleanUp in interface com.google.common.cache.Cache<Object,Object>
    • invalidateAll

      public void invalidateAll(Iterable keys)
      Specified by:
      invalidateAll in interface com.google.common.cache.Cache<Object,Object>
    • putAll

      public void putAll(Map m)
      Specified by:
      putAll in interface com.google.common.cache.Cache<Object,Object>
    • getAllPresent

      public com.google.common.collect.ImmutableMap getAllPresent(Iterable keys)
      Specified by:
      getAllPresent in interface com.google.common.cache.Cache<Object,Object>