-
public 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()
-
-
Method Detail
-
put
abstract <T> boolean put(int keyType, String key, T value)
Put data into cache
- Parameters:
keyType
- the cache type CacheTypekey
- the unique keyvalue
- 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 CacheTypekey
- 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 CacheTypekey
- the unique key
-
clear
abstract <T> boolean clear(int keyType)
Clear all cache by keyClass
- Parameters:
keyType
- the cache type CacheType
-
onDestroy
abstract void onDestroy()
-
-
-
-