-
public 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()
-
-
-
Method Detail
-
put
abstract boolean put(int keyType, String key, int relationType, Array<String> relationKeys)
Put relation, such as group and device.
-
get
abstract Set<String> get(int keyType, String key, int relationType)
Get relation from cache
-
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
-
remove
abstract boolean remove(int keyType, String key, int relationType, Array<String> relationKeys)
-
clear
abstract boolean clear(int keyType, int relationType)
-
clear
abstract boolean clear(int keyType, String key)
-
onDestroy
abstract void onDestroy()
-
-