【文件属性】:
文件名称:key-value-server:key-value 多线程服务器
文件大小:212KB
文件格式:ZIP
更新时间:2021-05-20 20:38:16
C++
key-value-server
##Build
make : 编译server服务端;
make client : 编译client 客户端;
make clean_data 清除数据文件;
make clean 清除编译临时文件;
##Run
首先运行 ./server
运行客户端 ./client 127.0.0.1
支持多客户端同时和服务端通信,可另开 Terminal 运行新的客户端
客户端命令
get [key] search a key from the server, get the key's value.
put [key]:[value] put or set a data node(key and value) into server.
save_cache save the serve
【文件预览】:
key-value-server-master
----client(107KB)
----hash_cache.h(3KB)
----server(525KB)
----hash_cache.cpp(10KB)
----README.md(714B)
----node.h(159B)
----server.cpp(5KB)
----client.cpp(3KB)
----convert.cpp(1KB)
----makefile(592B)
----hash_cache_introduction.txt(2KB)
----convert.h(532B)