Package 

Interface ISmartCacheManager.Entity

    • Method Summary

      Modifier and Type Method Description
      abstract <T> boolean put(int keyType, String key, T value) Put data into cache
      abstract <T> boolean put(int keyType, List<Pair<String, T>> list)
      abstract <T> CacheObj<T> get(int keyType, String key) Get data from cache
      abstract Set<String> getKeys(int keyType) Get all keys from disk cache
      abstract <T> boolean remove(int keyType, String key) Remove data from cache
      abstract <T> boolean clear(int keyType) Clear all cache by keyClass
      abstract void onDestroy()
      • 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(int keyType, String key, T value)

        Put data into cache

        Parameters:
        keyType - the cache type CacheType
        key - the unique key
        value - the cache object
      • put

         abstract <T> boolean put(int keyType, List<Pair<String, T>> list)
      • get

         abstract <T> CacheObj<T> get(int keyType, String key)

        Get data from cache

        Parameters:
        keyType - the cache type CacheType
        key - the unique key
      • getKeys

         abstract Set<String> getKeys(int keyType)

        Get all keys from disk cache

      • remove

         abstract <T> boolean remove(int keyType, String key)

        Remove data from cache

        Parameters:
        keyType - the cache type CacheType
        key - the unique key
      • clear

         abstract <T> boolean clear(int keyType)

        Clear all cache by keyClass

        Parameters:
        keyType - the cache type CacheType