3 Star 2 Fork 1

fotomxq/weeekj_core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
focus_cache.go 991 Bytes
一键复制 编辑 原始数据 按行查看 历史
fotomxq 提交于 2025-02-05 18:52 +08:00 . 修改项目路径;
package UserFocus2
import (
"fmt"
Router2SystemConfig "gitee.com/fotomxq/weeekj_core/v5/router2/system_config"
)
// 获取缓冲
func getFocusUserCacheMark(userID int64, mark string, system string, bindID int64) string {
return fmt.Sprint("user:focus:user:", mark, ".", system, ".", bindID, ".", userID)
}
func getFocusCountCacheMark(mark string, system string, bindID int64) string {
return fmt.Sprint("user:focus:count:mark:", mark, ".", system, ".", bindID)
}
func getFocusCountByUserCacheMark(userID int64, mark string, system string) string {
return fmt.Sprint("user:focus:count:user:", userID, ".", mark, ".", system)
}
func deleteCache(userID int64, mark string, system string, bindID int64) {
Router2SystemConfig.MainCache.DeleteMark(getFocusUserCacheMark(userID, mark, system, bindID))
Router2SystemConfig.MainCache.DeleteMark(getFocusCountCacheMark(mark, system, bindID))
Router2SystemConfig.MainCache.DeleteSearchMark(getFocusCountByUserCacheMark(userID, mark, ""))
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/fotomxq/weeekj_core.git
git@gitee.com:fotomxq/weeekj_core.git
fotomxq
weeekj_core
weeekj_core
v5.3.88

搜索帮助