Godis:go语言实现的缓存系统

时间:2021-03-11 19:44:52
【文件属性】:
文件名称:Godis:go语言实现的缓存系统
文件大小:30KB
文件格式:ZIP
更新时间:2021-03-11 19:44:52
系统开源 神是 用Go语言实现的一个缓存系统 功能 提供http方式实现缓存功能 提供tcp方式实现缓存功能 提供数据持久化功能 提供数据消除功能 支持缓存过期时间设置,以秒位单位 提供配置文件进行部分参数配置 运行 go run main.go将可重新读取配置文件的config.toml,可通过-conf参数指定配置文件路径。 服务将同时启动http与tcp两种服务方式。 http基本接口 get /status获取缓存数量与占用内存大小 get /cache/key获取键为key的缓存数据 put /cache/key -body:value设置键为key,缓存数据为value del /cache/key删除键为key的缓存数据 tcp方式 参考client文件夹下的客户端测试程序,具体实现见cache-benchmark/cacheClient/tcp.go
【文件预览】:
Godis-master
----go.mod(279B)
----main.go(2KB)
----go.sum(5KB)
----client()
--------main.go(1KB)
--------test.sh(240B)
----consistent()
--------consistent.go(5KB)
----http()
--------clusterHandle.go(449B)
--------cacheHandler.go(1KB)
--------server.go(1KB)
--------keysAndValuesHandler.go(498B)
--------statusHandler.go(398B)
--------rebalanceHandler.go(745B)
----tcp()
--------server.go(8KB)
----config.toml(892B)
----config3.toml(833B)
----config()
--------config.go(743B)
----test.sh(899B)
----README.md(828B)
----Makefile(189B)
----cache()
--------InMemCacheWithFDB.go(6KB)
--------strategys.go(1KB)
--------cache.go(199B)
--------InMemCache.go(6KB)
--------state.go(421B)
--------scanner.go(94B)
----cluster()
--------node.go(1KB)
----config2.toml(833B)
----.gitignore(90B)
----cache-benchmark()
--------main.go(5KB)
--------cacheClient()

网友评论