getAllKeys
int getAllKeys(const GetAllKeysReq &req, GetAllKeysRsp &rsp)
功能: 获取所有key
参数:
struct GetAllKeysReq
{
1 require string moduleName; //模块名
2 require int index; //从index指定的hash桶开始遍历,初始从0开始
3 require int count; //遍历多少个hash桶
4 require string idcSpecified = ""; //idc区域
};
struct GetAllKeysRsp
{
1 require vector<string> keys; //键集合
2 require bool isEnd; //是否还有数据,由于桶的数量不定,通过isEnd参数来表示后面是否还有hash桶
};
返回值:
返回值 | 含义 |
---|---|
ET_MODULE_NAME_INVALID | 模块名错误 |
ET_CACHE_ERR | cache读取错误 |
ET_SYS_ERR | 系统异常 |
ET_SUCC | 读取成功 |