类 CacheResult<T>
java.lang.Object
top.tangyh.basic.cache.redis2.CacheResult<T>
缓存返回对象
- 版本:
- v1.0
- 作者:
- tangyh
-
构造器概要
构造器构造器说明CacheResult(String key) CacheResult(String key, Duration expire, T rawValue) CacheResult(String key, T rawValue) CacheResult(CacheHashKey cacheKey, T rawValue) CacheResult(CacheKey cacheKey) CacheResult(CacheKey cacheKey, T rawValue) -
方法概要
-
构造器详细资料
-
CacheResult
-
CacheResult
-
CacheResult
-
CacheResult
-
CacheResult
-
CacheResult
-
-
方法详细资料
-
getValue
缓存对象- 返回:
- cache object include null object
-
isNullVal
public boolean isNullVal()是否缓存的空值- 返回:
- 返回true 表示redis缓存了空值, 一般情况下数据库没有值才会缓存空值
-
isNull
public boolean isNull()是否没有缓存- 返回:
- 返回true 表示redis没有该值, 并不能确定数据库有无该值!
-
asList
-
asString
-
asLong
-
asLong
public long asLong(long defValue) -
toString
-