Package 

Interface ISmartCacheManager.Relation

    • Method Summary

      Modifier and Type Method Description
      abstract boolean put(int keyType, String key, int relationType, Array<String> relationKeys) Put relation, such as group and device.
      abstract Set<String> get(int keyType, String key, int relationType) Get relation from cache
      abstract Set<String> getReverse(int keyType, String key, int relationType)
      abstract Set<String> getKeys(int keyType, String key, int relationType) Get all the relation keys
      abstract boolean remove(int keyType, String key, int relationType, Array<String> relationKeys)
      abstract boolean clear(int keyType, int relationType)
      abstract boolean clear(int keyType, String key)
      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 boolean put(int keyType, String key, int relationType, Array<String> relationKeys)

        Put relation, such as group and device.

        Parameters:
        keyType - the cache type CacheType
        key - the key
        relationType - the relation type CacheType
        relationKeys - the relationKeys nodes
      • get

         abstract Set<String> get(int keyType, String key, int relationType)

        Get relation from cache

        Parameters:
        keyType - the cache type CacheType
        key - the key
        relationType - the relation type CacheType
      • getReverse

         abstract Set<String> getReverse(int keyType, String key, int relationType)
      • getKeys

         abstract Set<String> getKeys(int keyType, String key, int relationType)

        Get all the relation keys

        Parameters:
        keyType - the cache type CacheType
        key - the key
        relationType - the relation type CacheType
      • remove

         abstract boolean remove(int keyType, String key, int relationType, Array<String> relationKeys)
        Parameters:
        keyType - the cache type CacheType
        key - the key
        relationType - the relation type CacheType
        relationKeys - the relationKeys nodes
      • clear

         abstract boolean clear(int keyType, int relationType)
        Parameters:
        keyType - the cache type CacheType
        relationType - the relation type CacheType
      • clear

         abstract boolean clear(int keyType, String key)