cache接口约束增加定义缓存剩余时间 + 请求预热配置
This commit is contained in:
12
cache/ICache.go
vendored
12
cache/ICache.go
vendored
@ -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