Package 

Interface ICacheStore


  • 
    public interface ICacheStore
    
                        

    The cache store interface, you can implement memory caching and disk caching by yourself

    • Method Summary

      Modifier and Type Method Description
      abstract <T> CacheObj<T> getCacheObj(ICacheKey key) Get CacheObj from cache
      abstract <T> boolean )>putCacheObj(CacheObj<T> obj) Put into cache
      abstract <T> boolean putCacheObj(List<CacheObj<T>> objList)
      abstract boolean remove(ICacheKey key) Delete the cache by key and nullable sub key
      abstract boolean clearExpired() Delete all expired cache
      abstract boolean clearAll() Delete all cache
      abstract Set<ICacheKey> getAllKeys() Get all keys
      • Methods inherited from class java.lang.Object

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

      • getCacheObj

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

        Get CacheObj from cache

        Parameters:
        key - primary key ICacheKey
      • putCacheObj

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

        Put into cache

        Parameters:
        obj - the CacheObj
      • putCacheObj

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

         abstract boolean remove(ICacheKey key)

        Delete the cache by key and nullable sub key

        Parameters:
        key - primary key ICacheKey
      • clearExpired

         abstract boolean clearExpired()

        Delete all expired cache

      • clearAll

         abstract boolean clearAll()

        Delete all cache

      • getAllKeys

         abstract Set<ICacheKey> getAllKeys()

        Get all keys