@Protocol.RpcService(value="/_nrpc/db", timeout=1500) public interface RpcDBService
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
boolean exist2(@Protocol.RpcParam(value="key") String key, @Protocol.RpcParam(value="group") String group)
key - keygroup - groupboolean exist(@Protocol.RpcParam(value="key") String key)
void put4(@Protocol.RpcParam(value="group") String key, @Protocol.RpcParam(value="data") byte[] data, @Protocol.RpcParam(value="expireSecond") int expireSecond, @Protocol.RpcParam(value="group") String group)
key - keydata - dataexpireSecond - expireSecondgroup - groupvoid put3(@Protocol.RpcParam(value="group") String key, @Protocol.RpcParam(value="data") byte[] data, @Protocol.RpcParam(value="expireSecond") int expireSecond)
void put(@Protocol.RpcParam(value="group") String key, @Protocol.RpcParam(value="data") byte[] data)
int count(@Protocol.RpcParam(value="group") String group)
group - groupbyte[] get2(@Protocol.RpcParam(value="key") String key, @Protocol.RpcParam(value="group") String group)
key - keygroup - groupbyte[] get(@Protocol.RpcParam(value="key") String key)
void changeKey3(@Protocol.RpcParam(value="oldKey") String oldKey, @Protocol.RpcParam(value="newKey") String newKey, @Protocol.RpcParam(value="group") String group)
oldKey - oldKeynewKey - newKeygroup - groupvoid changeKey(@Protocol.RpcParam(value="oldKey") String oldKey, @Protocol.RpcParam(value="newKey") String newKey)
void remove2(@Protocol.RpcParam(value="key") String key, @Protocol.RpcParam(value="group") String group)
key - keygroup - groupvoid remove(@Protocol.RpcParam(value="key") String key)
void removeBatch2(@Protocol.RpcParam(value="keys") List<String> keys, @Protocol.RpcParam(value="group") String group)
keys - keysgroup - groupvoid removeBatch(@Protocol.RpcParam(value="keys") List<String> keys)
void setMaxSize2(@Protocol.RpcParam(value="maxSize") Integer maxSize, @Protocol.RpcParam(value="group") String group)
maxSize - the group maxSizegroup - groupvoid setMaxSize(@Protocol.RpcParam(value="maxSize") Integer maxSize)
Copyright © 2021. All rights reserved.