icejd

Results 7 issues of icejd

redis6.0我准备启用部分本地缓存 用下面的代码 ` _database.UseClientSideCaching(new ClientSideCachingOptions { //本地缓存的容量 Capacity = 3, //过滤哪些键能被本地缓存 KeyFilter = key => key.StartsWith("zywcache:resource:class"), //检查长期未使用的缓存 CheckExpired = (key, dt) => DateTime.Now.Subtract(dt) > TimeSpan.FromSeconds(2) }); ` 但是我在 _database.Notice +=...

#### 问题描述及重现代码: ```c# fsql.Update().SetSource(model).Where(m => m.categoryid == model.categoryid && m.modulename == model.modulename).ExecuteAffrows()>0; ``` 上面的语句会自动添加上主键的判断,但是我不需要对主键进行判断,这很烦恼 UPDATE [resume_category_modules] SET [categoryid] = @p_0, [modulename] = @p_1, [title] = @p_2, [body] = @p_3, [visible]...

I searched for a long time, but I didn't find how to change the language. In addition, the toolbar seems to have no title prompt, which is not very friendly

module:toolbar

查了一些文章,都介绍要用Microsoft.Extensions.Caching.StackExchangeRedis,我不是很喜欢这个,我已经在习惯了在项目中使用FreeRedis,不知道FreeRedis已提供了类似的解决方案,还是说需要自已写中间件完成,请百忙中指点下

Instance.Keys(pattern); 日志里显示: > KEYS resumefile:5832351:50* 没有带前缀,其它操作都有带前缀 版本号:1.2.15

#### 问题描述及重现代码: ```c# [JsonMap] public UserLoginsettingsModel user_loginsettings { get; set; } = new UserLoginsettingsModel(); return fsql.Update() .Set(a => a.user_email == model.user_email) .Set(a => a.user_loginsettings==model.user_loginsettings) .Where(a => a.userid == model.userid) .ExecuteAffrows()>0;...

单例模式 static Lazy _cliLazy = new Lazy(() => { RedisClient _database;= new RedisClient($"{masterhost},password={password}"); _database.Serialize = obj => JsonConvert.SerializeObject(obj); _database.Deserialize = (json, type) => JsonConvert.DeserializeObject(json, type); //_database.Notice += _database_Notice; return _database;...