csredis icon indicating copy to clipboard operation
csredis copied to clipboard

.NET Core or .NET Framework 4.0+ client for Redis and Redis Sentinel (2.8) and Cluster. Includes both synchronous and asynchronous clients.

Results 157 csredis issues
Sort by recently updated
recently updated
newest added

大佬帮忙看看下面的情况是咋回事 redis部署的是三节点哨兵:172.10.0.242、172.10.0.243、172.10.0.244(操作系统是centos 7.9) 断网前:243是主节点,242和244是从节点 断网后:242变成主节点 测试代码有10个订阅,如下: ![image](https://user-images.githubusercontent.com/5244044/157824382-02b5ded0-9fe3-464d-8bd9-ec63085d89c7.png) 使用ifconfig ens192 down 断开主节点243的网络,待csredis哨兵主节点切换成242后,使用ifconfig ens192 up 使243重新联网, 此时242变成主节点,截图如下: ![image](https://user-images.githubusercontent.com/5244044/157825421-5f007973-bbfb-4af3-ab3d-84a692e2e918.png) 然后订阅就一直报错,循环输出下图红色框选的错误信息 ![image](https://user-images.githubusercontent.com/5244044/157825503-1ffde118-aa9e-401e-bf5d-5aff38a7907e.png) ![image](https://user-images.githubusercontent.com/5244044/157825605-9d599852-a691-4b54-b0f0-6bc405a3f04d.png) 报错堆栈信息如下: ![image](https://user-images.githubusercontent.com/5244044/157825702-3ac6961a-db20-4f93-a6cc-8857251ad4a3.png)

.netcore项目,作者推荐是csrediscore还是freeRedis啊?

单元测试 入参如下:rds.XPending("testXReadGroupKey01", "testXReadGroup01","-","+",100); 报错代码: public void ExpectType(RedisMessage expectedType) { RedisMessage type = ReadType(); if ((int)type == -1) { var alldata = _io.ReadAll(); try { _io.Dispose(); } catch { } throw...

请问CSRedis有无接口示例代码或者如何配置证书? **Code:** var csredis = new CSRedisClient("192.168.8.111:6379,ssl=true"); RedisHelper.Initialization(csredis); Console.WriteLine(csredis.Get("name")); **Exception error:** 3)System.Exception:“【192.168.8.111:6379/0】状态不可用,等待后台检查程序恢复方可使用。One or more errors occurred. (Authentication failed because the remote party sent a ### TLS alert: 'HandshakeFailure'.)” 2)AuthenticationException: Authentication...

CSRedisClient.cs 代码 public bool Refresh(int milliseconds) { var ret = RedisHelper.Eval(@"local gva = redis.call('GET', KEYS[1]) if gva == ARGV[1] then redis.call('PEXPIRE', KEYS[1], ARGV[2]) return 1 end return 0", _name, _value,...

请教一下 System.OutOfMemoryException: SafeObjectPool.GetAsync 无可用资源且队列过长,Policy.AsyncGetCapacity = 100000 这个是否是连接池设置的太小 然后阻塞操作较多导致的

Unexpected end of stream; expected type 'Status'; data = '' at CSRedis.CSRedisClient.GetAndExecute[T](RedisClientPool pool, Func`2 handler, Int32 jump, Int32 errtimes) at CSRedis.CSRedisClient.ExecuteScalar[T](String key, Func`3 hander) at CSRedis.CSRedisClient.Set(String key, Object value, Int32...

![image](https://user-images.githubusercontent.com/18099337/150063629-258f490c-0f82-4cfa-bd32-56dc795f4608.png)

``` new Thread(() => { LeaguerAccountDto account = null; try { while (RedisHelper.LLen(key) > 0) { account = RedisHelper.LPop(key); if (account != null) { //业务处理 } } } catch(Exception ex){...