redis 专题 (一)存储

这章开始进入主题,讲redis如何存储。以下示例客户端均为 net core版本的,redis客户端为ServiceStack.Redis ,github地址:https://github.com/ServiceStack/ServiceStack.Redis

对于net来说,redis客户端一般使用 ServiceStack.Redis  或 StackExchange.Redis。但总体来说,ServiceStack.Redis性能更优。

客户端连接字符串支持以下几种格式:

localhost
127.0.0.1:6379
redis://localhost:6379
password@localhost:6379
clientid:password@localhost:6379
redis://clientid:password@localhost:6380?ssl=true&db=1

猜你喜欢

转载自www.cnblogs.com/fei686868/p/13183053.html
今日推荐