package
Version:
v0.6.5
Opens a new window with list of versions in this module.
Published: Jul 29, 2025
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ClearCommonCache(subjectType string)
清理通用缓存
func ClearPageCache(subjectType string)
清理新增/更新/删除操作时该分类首页缓存
type CacheItem struct {
Value interface{}
Expiration time.Time
}
首页缓存: home:{subject_type}
首页总结缓存: home_summary:{subject_type}
分类首页缓存: page:{subject_type}:{status}:{sort_by}
分类总数缓存: count:{subject_type}
条目缓存: subject:{uuid}
搜索缓存: search:{query_key}:{page}
搜索总数缓存: count:search:{query_key}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.