修复计划任务打断造成协程内上下文执行停止的问题

This commit is contained in:
ayflying
2025-09-02 12:25:30 +08:00
parent 8210ac24db
commit aa1dc0896d
6 changed files with 29 additions and 28 deletions

View File

@@ -31,8 +31,10 @@ type (
// @param data interface{}: 要存储的活动信息数据。
// @return err error: 返回错误信息如果操作成功则返回nil。
Set(uid int64, actId int, data interface{}) (err error)
Saves(ctx context.Context) (err error)
Saves() (err error)
Save(ctx context.Context, actId int) (err error)
// 删除缓存key
DelCacheKey(ctx context.Context, aid int, uid int64)
// 清空GetRedDot缓存
RefreshGetRedDotCache(uid int64)
Del(uid int64, actId int)

View File

@@ -16,7 +16,9 @@ type (
// @Description: 保存用户KV数据列表。
// @receiver s: sGameKv的实例。
// @return err: 错误信息如果操作成功则为nil。
SavesV1(ctx context.Context) (err error)
SavesV1() (err error)
// 删除缓存key
DelCacheKey(ctx context.Context, uid int64)
}
)