Package com.landawn.abacus.cache
Interface DistributedCacheClient<T>
- Type Parameters:
T-
- All Known Implementing Classes:
AbstractDistributedCacheClient,JRedis,SpyMemcached
public interface DistributedCacheClient<T>
- Since:
- 0.8
- Author:
- Haiyang Li
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlonglongbooleanvoidDisconnect.voidflushAll()Delete all the keys from all the servers.Gets the bulk.getBulk(Collection<String> keys) Gets the bulk.longlongboolean
-
Field Details
-
DEFAULT_TIMEOUT
static final long DEFAULT_TIMEOUT- See Also:
-
MEMCACHED
- See Also:
-
REDIS
- See Also:
-
-
Method Details
-
serverUrl
String serverUrl()- Returns:
-
get
- Parameters:
key-- Returns:
-
getBulk
Gets the bulk.- Parameters:
keys-- Returns:
-
getBulk
Gets the bulk.- Parameters:
keys-- 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
void flushAll()Delete all the keys from all the servers. -
disconnect
void disconnect()Disconnect.
-