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

This commit is contained in:
2024-10-09 18:44:24 +08:00
parent c50cb0039a
commit 4092863a9a
2 changed files with 31 additions and 0 deletions

12
cache/ICache.go vendored
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
}