简单ttl懒删除支持

This commit is contained in:
1iaan
2026-04-04 22:31:00 +08:00
parent 6ede44bd80
commit 78519fbfe5
11 changed files with 375 additions and 98 deletions

View File

@@ -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