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

简单的测试代码。 host redis 127.0.0.1 不同构造字符串 hostname=>$"redis:6379,defaultDatabase=0,poolsize=2000,ssl=false,preheat=false,writeBuffer=10240"; ip =>$"127.0.0.1:6379,defaultDatabase=0,poolsize=2000,ssl=false,preheat=false,writeBuffer=10240"; Parallel.For(0, 100_0000, new ParallelOptions() { MaxDegreeOfParallelism = 10000 }, (i) => { Console.WriteLine(i); try { Test(key); } catch (Exception ex) { Console.WriteLine(ex.Message);...

有没有Transaction的帮助文档,watch后进行的操作?

.netframework 4.5 版本:v3.6.6 对数据缓存做性能优化的时候,出现的问题。引发问题如下: 发现通过SetAsync()方法缓存的信息,通过Get()方法获取的时候就报这个错误。我存储的对象是一个List。将SetAsync()改为Set()方法,问题就正常了。

Path:src/CSRedisCore/RedisHelper.cs On lines 31,37,38 ` /// /// 初始化csredis静态访问类 /// RedisHelper.Initialization(new CSRedis.CSRedisClient(\"127.0.0.1:6379,pass=123,defaultDatabase=13,poolsize=50,ssl=false,writeBuffer=10240,prefix=key前辍\")) /// /// public static void Initialization(CSRedisClient csredis) { _instance = csredis; } ` For example, in this code。我们会使用这段代码在Startup中进行依赖注入,当鼠标移动到 RedisHelper.Initialization(csredis);时,Tips显示连接方式的密码是使用Pass,我尝试了很久,甚至怀疑这个插件有问题(因为在使用async时程序不会因为密码问题而截断)。直到我切换成同步方法,才发现NOAUTH...

大数据并发是出现空引用问题 'Object reference not set to an instance of an object.' @2881099 请问如何解决. at CSRedis.RedisClientPoolPolicy.OnGet(Object`1 obj) at CSRedis.Internal.ObjectPool.ObjectPool`1.Get(Nullable`1 timeout) at CSRedis.CSRedisClient.GetAndExecute[T](RedisClientPool pool, Func`2 handler, Int32 jump, Int32 errtimes) at CSRedis.CSRedisClient.ExecuteScalar[T](String...

作者你好: 我用的是nuget上3.1.6版,项目没有大的负荷,偶然有次发现用HsetAsync()方法写入数据没有成功,也没有异常。只是数据没有发生任何应有的变化。反复多次试验之后,发现偶尔也能执行成功。改成同步方法HSet之后,100%成功。我的项目环境是.netcore 2.2 不知道这是不是一个普遍的问题,吓得我赶快把所有的异步方法都改成了同步方法,包括ZAddAsync等尚未发现问题的方法。 代码如下: ```C# var rhs= RedisHelper.HGet("REWARDHIS", openId); rhs.Add(rh); RedisHelper.HSetAsync("REWARDHIS", openId, rhs); ``` 我很想知道这是不是一个已知的bug,是否在后续版本得到了解决。[email protected]

你好,我在使用XAdd方法时,总是报CSRedis.RedisException: 'ERR Invalid stream ID specified as stream command argument'这个错误,代码如下,test程序还没看到例子,帮忙解决一下,谢谢 string strKey = "stream_test"; string id = "*"; ValueTuple[] tup = new ValueTuple[5];// ("22222", "33333"); tup[0] = ("1111", "22222"); aa.XAdd(strKey,...

版本 v3.6.5,连接串:127.0.0.1,password=,defaultDatabase=1,prefix=biz:,poolsize=20,preheat=10 使用BRPopLPush时日志出现如下,数据能正常Pop出来,不知是否存在某些隐患? | csreids 错误【redis:6379/5】:Unexpected response type: MultiBulk (expecting Bulk) at CSRedis.CSRedisClient.GetAndExecute[T](RedisClientPool pool, Func`2 handler, Int32 jump, Int32 errtimes) | at CSRedis.CSRedisClient.NodesNotSupport[T](String[] keys, T defaultValue, Func`3 callback) | at...

Runtime: .NET 5.0 CSRedisVersion: 3.6.5 ConnectionString: host.docker.internal,poolsize=50,ssl=false,writeBuffer=102400,idleTimeout=20000,preheat=3,tryit=2,testcluster=false,prefix=thenextstone,defaultDatabase=2 ![image](https://user-images.githubusercontent.com/5441896/101116809-c8c2e000-3620-11eb-94f5-c12ed72035d5.png)