public class RpcDBServiceImpl extends Object implements RpcDBService
| 构造器和说明 |
|---|
RpcDBServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
changeKey(String oldKey,
String newKey) |
void |
changeKey3(String oldKey,
String newKey,
String group)
changeKey
|
int |
count(String group)
Gets the number of groups
|
boolean |
exist(String key) |
boolean |
exist2(String key,
String group)
exist key
|
byte[] |
get(String key) |
byte[] |
get2(String key,
String group)
To get the data
|
void |
put(String key,
byte[] data) |
void |
put3(String key,
byte[] data,
int expireSecond) |
void |
put4(String key,
byte[] data,
int expireSecond,
String group)
put
|
void |
remove(String key) |
void |
remove2(String key,
String group)
remove data
|
void |
removeBatch(List<String> keys) |
void |
removeBatch2(List<String> keys,
String group)
remove data Batch
|
void |
setMaxSize(Integer maxSize) |
void |
setMaxSize2(Integer maxSize,
String group)
Set the max number for this group
|
public boolean exist2(String key, String group)
RpcDBServiceexist2 在接口中 RpcDBServicekey - keygroup - grouppublic void put(String key, byte[] data)
put 在接口中 RpcDBServicepublic void put3(String key, byte[] data, int expireSecond)
put3 在接口中 RpcDBServicepublic void put4(String key, byte[] data, int expireSecond, String group)
RpcDBServiceput4 在接口中 RpcDBServicekey - keydata - dataexpireSecond - expireSecondgroup - grouppublic int count(String group)
RpcDBServicecount 在接口中 RpcDBServicegroup - grouppublic boolean exist(String key)
exist 在接口中 RpcDBServicepublic byte[] get(String key)
get 在接口中 RpcDBServicepublic byte[] get2(String key, String group)
RpcDBServiceget2 在接口中 RpcDBServicekey - keygroup - grouppublic void changeKey(String oldKey, String newKey)
changeKey 在接口中 RpcDBServicepublic void changeKey3(String oldKey, String newKey, String group)
RpcDBServicechangeKey3 在接口中 RpcDBServiceoldKey - oldKeynewKey - newKeygroup - grouppublic void remove(String key)
remove 在接口中 RpcDBServicepublic void remove2(String key, String group)
RpcDBServiceremove2 在接口中 RpcDBServicekey - keygroup - grouppublic void removeBatch(List<String> keys)
removeBatch 在接口中 RpcDBServicepublic void setMaxSize2(Integer maxSize, String group)
RpcDBServicesetMaxSize2 在接口中 RpcDBServicemaxSize - the group maxSizegroup - grouppublic void setMaxSize(Integer maxSize)
setMaxSize 在接口中 RpcDBServicepublic void removeBatch2(List<String> keys, String group)
RpcDBServiceremoveBatch2 在接口中 RpcDBServicekeys - keysgroup - groupCopyright © 2021. All rights reserved.