Class BlackHoleCacheEngine

java.lang.Object
dev.voidframework.cache.engine.BlackHoleCacheEngine
All Implemented Interfaces:
CacheEngine

@BindClass public final class BlackHoleCacheEngine extends Object implements CacheEngine
Black Hole (do nothing) cache implementation.
  • Constructor Details

    • BlackHoleCacheEngine

      public BlackHoleCacheEngine()
  • Method Details

    • get

      public Object get(String cacheKey)
      Description copied from interface: CacheEngine
      Retrieves a value from cache.
      Specified by:
      get in interface CacheEngine
      Parameters:
      cacheKey - The key
      Returns:
      The value, otherwise, null
    • set

      public void set(String cacheKey, Object value, int timeToLive)
      Description copied from interface: CacheEngine
      Set a value to the cache.
      Specified by:
      set in interface CacheEngine
      Parameters:
      cacheKey - The key
      value - The value
      timeToLive - Retention time (in seconds)