refactor(dict): 调整缓存逻辑并优化数据获取方式

将原先基于 gcache 的缓存机制移除,改为使用 gdb 内置的
This commit is contained in:
2025-12-15 06:15:55 +08:00
parent 56af8951c7
commit 78bb2bd148
2 changed files with 25 additions and 25 deletions

View File

@@ -13,7 +13,7 @@ type EffectService struct {
func (s *EffectService) Args(id uint32) (int, []int) {
m := cool.DBM(s.Model).Where("se_idx", id).Cache(gdb.CacheOption{
// Duration: time.Hour,
//Duration: time.Hour,
Force: false,
})