Package com.landawn.abacus.cache
Class JRedis<T>
java.lang.Object
com.landawn.abacus.cache.AbstractDistributedCacheClient<T>
com.landawn.abacus.cache.JRedis<T>
- Type Parameters:
T-
- All Implemented Interfaces:
DistributedCacheClient<T>
- Since:
- 0.8
- Author:
- Haiyang Li
-
Field Summary
Fields inherited from interface com.landawn.abacus.cache.DistributedCacheClient
DEFAULT_TIMEOUT, MEMCACHED, REDIS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.landawn.abacus.cache.AbstractDistributedCacheClient
getBulk, getBulk, serverUrl
-
Constructor Details
-
JRedis
- Parameters:
serverUrl-
-
JRedis
- Parameters:
serverUrl-timeout-
-
-
Method Details
-
get
- Parameters:
key-- Returns:
-
set
- Parameters:
key-obj-liveTime-- Returns:
- true, if successful
-
delete
- Parameters:
key-- Returns:
- true, if successful
-
incr
- Parameters:
key-- Returns:
-
incr
- Parameters:
key-deta-- Returns:
-
decr
- Parameters:
key-- Returns:
-
decr
- Parameters:
key-deta-- Returns:
-
flushAll
public void flushAll()Flush all.- Specified by:
flushAllin interfaceDistributedCacheClient<T>- Overrides:
flushAllin classAbstractDistributedCacheClient<T>
-
disconnect
public void disconnect()Disconnect.
-