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

由于Console输出太多东西,期望改成Trace输出方便扩展

this is connection string: "127.0.0.1:6379,password=123456,allowadmin=true,ConnectTimeout=5000,SyncTimeout=5000,abortConnect=false,name=AlarmService" when the traffic is high always happening the error : 异常:System.Exception: 【127.0.0.1:6379/0】Status unavailable, waiting for recovery. Connect to server timeout ---> CSRedis.Internal.IO.RedisSocketException: Connect to server...

最初redis自己搭建的, 后来出问题买的亚马逊云的redis服务 ,还是一样的错误 平时没问题的, 凌晨流量大时候必会报错 异常: System.Exception: 【xxxxxxxxxxxxxxxxx:6379/15】状态不可用,等待后台检查程序恢复方可使用。Connect to server timeout ---> CSRedis.Internal.IO.RedisSocketException: Connect to server timeout at CSRedis.Internal.IO.RedisSocket.Connect(EndPoint endpoint, Int32 timeout) at CSRedis.Internal.RedisConnector.Connect(Int32 timeout) at CSRedis.RedisClient.Connect(Int32 timeout) at CSRedis.RedisClientPool.Return(Object`1...

增加了获取锁的间隔 目的是优化高并发的情况

csreids 错误【172.21.96.2:6379/0】:Connection was not opened at CSRedis.Internal.IO.RedisIO.GetOrThrow[T](T obj) at CSRedis.Internal.IO.RedisIO.get_Stream() at CSRedis.Internal.IO.RedisIO.Write(Byte[] data) at CSRedis.Internal.RedisConnector.Call[T](RedisCommand`1 command) at CSRedis.RedisClient.Write[T](RedisCommand`1 command) at CSRedis.RedisClient.HGet(String key, String field) at CSRedis.CSRedisClient.c__DisplayClass207_0.b__0(Object`1 c, String k) at...

RedisHelper.Keys返回的key全部带前缀,为什么 RedisHelper.Del删除时的key使用的又不是带前缀,这个设计我一直没有搞懂,那RedisHelper.Keys返回直接不带前缀不就好啦。。。而且前缀的含义不就key的一部分吗,怎么删除的时候有不用加前缀啦。。。。我这里前缀是dev, ![image](https://github.com/2881099/csredis/assets/34298947/b2f98fb2-39e0-44b1-b9e9-a98beeded158) 用工具查出来的key也带dev但是删除时就要把dev去掉,感觉这个操作很有歧义啊

【异常信息】:【xxxxx:6379/6】Status unavailable, waiting for recovery. Connect to server timeout 【堆栈调用】: at CSRedis.Internal.ObjectPool.ObjectPool 1.GetFree(Boolean checkAvailable) at CSRedis.Internal.ObjectPool.ObjectPool 1.Get(Nullable 1 timeout) at CSRedis.CSRedisClient.GetAndExecuteT at CSRedis.CSRedisClient.ExecuteScalarT at CSRedis.CSRedisClient.Set(String key, Object value, Int32 expireSeconds,...

【异常信息】:【xxxxx:6379/6】Status unavailable, waiting for recovery. Connect to server timeout 【堆栈调用】: at CSRedis.Internal.ObjectPool.ObjectPool 1.GetFree(Boolean checkAvailable) at CSRedis.Internal.ObjectPool.ObjectPool 1.Get(Nullable 1 timeout) at CSRedis.CSRedisClient.GetAndExecuteT at CSRedis.CSRedisClient.ExecuteScalarT at CSRedis.CSRedisClient.Set(String key, Object value, Int32 expireSeconds,...

如何能够通过事务来控制一批数据的插入或者修改或者最终失败后的回滚?

the undocumented names (without period in dotnet 5+) can drop their support when move to double-digit (to avoid potential conflicts) [learn.microsoft.com/en-us/dotnet/standard/frameworks#supported-target-frameworks](https://learn.microsoft.com/en-us/dotnet/standard/frameworks#supported-target-frameworks)