用c# 实现的一个分布式缓存框架
使用方法1 打开项目 运行项目2 打开浏览器访问 http://127.0.0.1:2679/add/Name/张三 //添加name = 张三的缓存3 http://127.0.0.1:2679/get/Name // 获取key 为name的缓存4 http://127.0.0.1:2679/regist/节点ip地址 //注册一个节点5 项目使用了lru 实现淘汰策略,使用一致性hash进行分布节点的选中,节点中通信使用protobuf 进行通信,在项目中集成了一个小型http服务器 运行
var h= new HttpSer();
int port=2679;
h.Start(new IPEndPoint(IPAddress.Parse("127.0.0.1"),port),"127.0.0.1:"+port);
Console.ReadKey();
git地址



