resp协议实现和使用hiredis进行测试
This commit is contained in:
14
kvs_inc_log.h
Normal file
14
kvs_inc_log.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef __KVS_INC_LOG_H__
|
||||
#define __KVS_INC_LOG_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int init_cmd_log(const char *file, int *logfd);
|
||||
int destroy_cmd_log(int logfd);
|
||||
|
||||
int kvs_save_cmd_to_logfile(const uint8_t *cmd, size_t len, int logfd);
|
||||
int kvs_replay_log(const char *logfile, int logfd);
|
||||
int ksv_clear_log(int logfd);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user