Garnet: 力压Redis的C#高性能分布式存储数据库 - InCerry - 博客园 (cnblogs.com)
https://github.com/microsoft/garnet
https://chuna2.787528.xyz/InCerry/p/18083820/garnet_introduce
替代 Redis 的开源项目「GitHub 热点速览」 - 削微寒 - 博客园 (cnblogs.com)
微软的Redis替代项目——Garnet - 天方 - 博客园 (cnblogs.com)
默认端口:3278
微软研究院最近开源了一个新的C#项目Garnet,它实现了Redis协议,基本可以看做redis的替代品了。
文档地址:https://microsoft.github.io/garnet/
简单的看了下,它居然是以nuget包发布的,通过它我们可以直接快速实现一个自己的redis server。
| using Garnet; | |
| try | |
| { | |
| using var server = new GarnetServer(args); | |
| server.Start(); | |
| Thread.Sleep(Timeout.Infinite); | |
| } | |
| catch (Exception ex) | |
| { | |
| Console.WriteLine($"Unable to initialize server due to exception: {ex.Message}"); | |
| } |
如果要作为独立服务直接运行,也可以从Github的Release倒是可以下载。
garnet.conf的配置:
Garnet Configuration | Garnet (microsoft.github.io)
浙公网安备 33010602011771号