Package 

Interface ICacheManager

    • Method Summary

      Modifier and Type Method Description
      abstract <T> boolean )>put(CacheObj<T> obj) Push an CacheObj into cache
      abstract <T> boolean put(List<CacheObj<T>> objList)
      abstract boolean remove(ICacheKey key) Delete the cache by key and nullable sub key
      abstract <T> CacheObj<T> getBeforeMaxAge(ICacheKey key) Get CacheObj before maxAgeTimestamp by primary key and nullable sub key
      abstract <T> CacheObj<T> getBeforeMaxStale(ICacheKey key) Get CacheObj before maxStaleTimestamp by primary key and nullable sub key
      abstract Set<ICacheKey> getAllKeys() Get all keys
      abstract boolean clearExpired() Delete all expired cache
      abstract boolean clearAll() Delete all cache
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • put

         abstract <T> boolean )>put(CacheObj<T> obj)

        Push an CacheObj into cache

        Parameters:
        obj - the CacheObj
      • put

         abstract <T> boolean put(List<CacheObj<T>> objList)
      • remove

         abstract boolean remove(ICacheKey key)

        Delete the cache by key and nullable sub key

        Parameters:
        key - primary key ICacheKey
      • getBeforeMaxAge

         abstract <T> CacheObj<T> getBeforeMaxAge(ICacheKey key)

        Get CacheObj before maxAgeTimestamp by primary key and nullable sub key

        Parameters:
        key - primary key ICacheKey
      • getBeforeMaxStale

         abstract <T> CacheObj<T> getBeforeMaxStale(ICacheKey key)

        Get CacheObj before maxStaleTimestamp by primary key and nullable sub key

        Parameters:
        key - primary key ICacheKey
      • getAllKeys

         abstract Set<ICacheKey> getAllKeys()

        Get all keys

      • clearExpired

         abstract boolean clearExpired()

        Delete all expired cache

      • clearAll

         abstract boolean clearAll()

        Delete all cache