getAllKeys

  1. int getAllKeys(const GetAllKeysReq &req, GetAllKeysRsp &rsp)

功能: 获取所有key

参数:

  1. struct GetAllKeysReq
  2. {
  3. 1 require string moduleName; //模块名
  4. 2 require int index; //从index指定的hash桶开始遍历,初始从0开始
  5. 3 require int count; //遍历多少个hash桶
  6. 4 require string idcSpecified = ""; //idc区域
  7. };
  8. struct GetAllKeysRsp
  9. {
  10. 1 require vector<string> keys; //键集合
  11. 2 require bool isEnd; //是否还有数据,由于桶的数量不定,通过isEnd参数来表示后面是否还有hash桶
  12. };

返回值

返回值 含义
ET_MODULE_NAME_INVALID 模块名错误
ET_CACHE_ERR cache读取错误
ET_SYS_ERR 系统异常
ET_SUCC 读取成功