bingtianyiyan
bingtianyiyan
代码如下: public abstract class MyHelper1 : RedisHelper { } 使用: MyHelper1.Initialization(new CSRedisClient("127.0.0.1:6690,password=xxx")); using (MyHelper1.Lock($"MyTest", 2)) { Task.Delay(100000).Wait(); Console.WriteLine("eee"); } 稍微停留下就会出错,降到版本3.6.5则正常 报错内容:使用前请初始化 RedisHelper.Initialization(new CSRedis.CSRedisClient("127.0.0.1:6379,pass=123,defaultDatabase=13,poolsize=50,ssl=false,writeBuffer=10240,prefix=key前辍")); at RedisHelper`1.get_Instance() at RedisHelper`1.Eval(String script, String key,...
RedisHelper里 internal static ThreadLocal\ rnd = new ThreadLocal\(); 应该为: internal static ThreadLocal rnd = new ThreadLocal(() => new Random()); 不然使用的时候RandomExpired报value的null错误
AddApiRecordAsync里是不是不应该每次随着api调用一次而更新过期时间,而应该 var keyExpireTime = await _db.KeyTimeToLiveAsync(key); //设置过期时间 if (keyExpireTime == null) { await _db.KeyExpireAsync(key,TimeSpan.FromSeconds(duration)); }
1.add support etcd cache tools in easycaching with EasyCaching.Etcd module
Please answer these questions before submitting your issue. - Why do you submit this issue? - [ ] Question or discussion - [ ] Bug - [ ] Requirement -...
fix:#157
fix: 1.ubantu 系统无法登陆,验证码图片无法正常展示 #157 2. add dockefile - - -
#90 #79 for support multiple gorm demo:
1.add etcd support for easycaching with cache and distributeLock
Modifying MySQL Stored Procedures for Backward Compatibility (Version 5.7 Support) Some MySQL stored procedure scripts currently don't support older versions (similar to the PostgreSQL compatibility issues we addressed). These need...