mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
update
This commit is contained in:
12
cache/cache_preload.go
vendored
Normal file
12
cache/cache_preload.go
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
package cache
|
||||
|
||||
import "context"
|
||||
|
||||
// PreLoadItem 预加载数据项
|
||||
type PreLoadItem struct {
|
||||
Key string
|
||||
Value any
|
||||
}
|
||||
|
||||
// PreloadFunc 数据预加载函数定义
|
||||
type PreloadFunc func(context.Context) ([]PreLoadItem, error)
|
Reference in New Issue
Block a user