3 Star 2 Fork 1

fotomxq/weeekj_core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
content_cache.go 911 Bytes
一键复制 编辑 原始数据 按行查看 历史
fotomxq 提交于 2025-02-05 18:52 +08:00 . 修改项目路径;
package BlogCore
import (
"fmt"
Router2SystemConfig "gitee.com/fotomxq/weeekj_core/v5/router2/system_config"
)
// 获取文章缓冲标识码
func getContentCacheMark(id int64) string {
return fmt.Sprint("blog:core:id:", id)
}
// url特殊的缓冲
func getContentURLListCacheMark(id int64) string {
return fmt.Sprint("blog:core:url:list:", id)
}
func getContentURLDataCacheMark(id int64) string {
return fmt.Sprint("blog:core:url:data:", id)
}
func getContentURLOwnDataCacheMark(id int64) string {
return fmt.Sprint("blog:core:url:own:data:", id)
}
// 删除缓冲
func deleteContentCacheByID(id int64) {
Router2SystemConfig.MainCache.DeleteMark(getContentCacheMark(id))
Router2SystemConfig.MainCache.DeleteMark(getContentURLListCacheMark(id))
Router2SystemConfig.MainCache.DeleteMark(getContentURLDataCacheMark(id))
Router2SystemConfig.MainCache.DeleteMark(getContentURLOwnDataCacheMark(id))
}
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.96

搜索帮助