Documentation
¶
Index ¶
- Variables
- func Clear()
- func Get(keyName string, expiration int, cacheFunc CacheFunc, cacheParameters ...any) any
- func InitCacheName(keyName string, cacheParameters ...any) string
- func MapCacheGet(keyName string, expiration int, cacheFunc CacheFunc, cacheParameters ...any) any
- func MapCacheRemove(name string)
- func MapCacheSet(keyName string, expiration int, data any)
- func MapCacherClear()
- func Remove(name string)
- type CacheFunc
- type RedisCacherStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheNamePrefix string = ""
缓存变量前缀
View Source
var CacheType string = ""
View Source
var MapCacher sync.Map
View Source
var MapCacherExpiration sync.Map
Functions ¶
func MapCacheGet ¶
获取变量 不存在则自动设置
Types ¶
type RedisCacherStruct ¶
var RedisCacher RedisCacherStruct
Click to show internal directories.
Click to hide internal directories.