RetailRocket.RedisClient:.Net Redis分片客户端

时间:2024-05-29 05:55:13
【文件属性】:

文件名称:RetailRocket.RedisClient:.Net Redis分片客户端

文件大小:6.73MB

文件格式:ZIP

更新时间:2024-05-29 05:55:13

C#

RetailRocket.RedisClient 如何使用 var hosts = new [] { " redis1.host.com " , " redis2.host.com " , " redis3.host.com " }; var client = new ShardedRedisClient ( new ShardingStrategy ( new [] { hosts . Select ( h => ( IRedisClientsManager ) new PooledRedisClientManager ( 5000 , 2 , h )) . ToArray () }) ); var val = client . Get ( " key " );


【文件预览】:
RetailRocket.RedisClient-master
----.gitignore(61B)
----README.md(376B)
----packages()
--------ServiceStack.Text.3.9.71()
--------Jil.2.10.0()
--------NLog.4.0.1()
--------repositories.config(191B)
--------ServiceStack.Common.3.9.71()
--------Newtonsoft.Json.7.0.1()
--------ServiceStack.Redis.3.9.71()
----RetailRocket.RedisClient()
--------Sharding()
--------IShardedRedisPipeline.cs(515B)
--------RetailRocket.RedisClient.csproj.user(223B)
--------Properties()
--------RetailRocket.RedisClient.csproj(3KB)
--------packages.config(507B)
--------IShardedRedisClient.cs(1KB)
--------Common()
----RetailRocket.RedisClient.sln(1019B)
----RetailRocket.RedisClient.v12.suo(5KB)

网友评论