简单ttl懒删除支持
This commit is contained in:
@@ -17,10 +17,13 @@ int ascii_casecmp(const uint8_t *a, uint32_t alen, const char *b);
|
||||
|
||||
typedef enum {
|
||||
KVS_CMD_START = 0,
|
||||
KVS_CMD_PING = KVS_CMD_START,
|
||||
KVS_CMD_AUTH,
|
||||
// array
|
||||
KVS_CMD_SET = KVS_CMD_START,
|
||||
KVS_CMD_SET,
|
||||
KVS_CMD_GET,
|
||||
KVS_CMD_DEL,
|
||||
KVS_CMD_SETEX,
|
||||
KVS_CMD_MOD,
|
||||
KVS_CMD_EXIST,
|
||||
// rbtree
|
||||
@@ -94,4 +97,4 @@ int resp_dispatch(const resp_cmd_t *cmd, resp_value_t *out_value);
|
||||
void __ssync(const uint8_t *ip, uint32_t ip_len, int port, unsigned long long seq);
|
||||
void __sready();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user