# kvstore **Repository Path**: xiao-deng-a/kvstore ## Basic Information - **Project Name**: kvstore - **Description**: 无 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-07-20 - **Last Updated**: 2024-09-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README kvstore #### 文件介绍 NtyCo: 协程的实现,kvstore是基于协程实现 kvstore.c: 实现了网络基础库与kv应用协议解析 rbtree.c: 实现了rbtree 并封装了符合kvstore的api hash.c: 实现了hash 并封装了符合hash的api bTree.cpp:s实现了bTree testcase.c: 测试用例 $ cd 9.1.1-kvstore $ git clone https://github.com/wangbojing/NtyCo.git ``` #### 代码编译(20230807以前的老版本) ``` $ cd 9.1.1-kvstore/NtyCo $ make # 先编译NtyCo,生成libntyco.a $ cd ../ # 进入kvstore的根目录 再编译kvstore.c $ gcc -o kvstore kvstore.c -I ./NtyCo/core/ -L ./NtyCo/ -lntyco -lpthread -ldl ``` #### 代码编译(20230807以后的版本) ``` $ cd 9.1.1-kvstore/ $ make ``` #### 执行 ``` # kvstore服务启动 $ ./kvstore # 监听端口8000 打开另一个ssh终端 # 客户端连接 $ telnet xx.xx.xx.xx 8000 #xx.xx.xx.xx为kvstore服务的ip地址 ```