cache接口约束增加定义缓存剩余时间 + 请求预热配置

This commit is contained in:
zhangdeman committed 2024-10-09 18:44:24 +08:00
1 parent c50cb0039a
commit 4092863a9a
2 files changed
+31

No files matched your search

+12
View File
@@ -51,4 +51,16 @@ type ICache interface {
//
// Date : 16:46 2024/6/3
SetValue(cacheKey string, cacheValue string) error
// TTL 缓存剩余生命周期(单位: s)
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 18:39 2024/10/9
TTL(cacheKey string) int64
// PreHeatConfig 缓存预热配置
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 18:42 2024/10/9
PreHeatConfig() *define.CachePreHeatConfig
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.