Documentation ¶
Index ¶
- Constants
- Variables
- func CacheGet[T any](Key string) (*T, bool)
- func CacheSet[T any](Key string, object *T)
- func FindMetaCacheSet[T any](value baseiface.IcacheKey) *T
- func InjectIchubCache(s *IchubCache)
- func InjectMetaCache(s *MetaCache)
- func LoadIchubCache() baseiface.ISingleton
- func LoadMetaCache() baseiface.ISingleton
- type FuncFileCache
- type IchubCache
- type MetaCache
Constants ¶
View Source
const Cache_expire_time = 30 * time.Minute
Variables ¶
View Source
var FileCache = NewFileCache()
Functions ¶
func FindMetaCacheSet ¶ added in v1.4.102
func InjectIchubCache ¶ added in v1.4.102
func InjectIchubCache(s *IchubCache)
func InjectMetaCache ¶ added in v1.4.102
func InjectMetaCache(s *MetaCache)
func LoadIchubCache ¶ added in v1.4.102
func LoadIchubCache() baseiface.ISingleton
func LoadMetaCache ¶ added in v1.4.102
func LoadMetaCache() baseiface.ISingleton
Types ¶
type FuncFileCache ¶
type FuncFileCache struct { Pkey string ExpireTime time.Duration // contains filtered or unexported fields }
func NewFileCache ¶
func NewFileCache() *FuncFileCache
func NewFunFileCache ¶
func NewFunFileCache(pkey string) *FuncFileCache
func (*FuncFileCache) Get ¶
func (this *FuncFileCache) Get(k string) (interface{}, bool)
func (*FuncFileCache) Set ¶
func (this *FuncFileCache) Set(k string, x interface{})
type IchubCache ¶
type IchubCache struct { basedto.BaseEntitySingle Pkey string ExpireTime time.Duration // contains filtered or unexported fields }
func FindBeanIchubCache ¶ added in v1.4.102
func FindBeanIchubCache() *IchubCache
func NewCache ¶
func NewCache() *IchubCache
func NewIchubCache ¶
func NewIchubCache(Pkey string) *IchubCache
func (*IchubCache) Get ¶
func (this *IchubCache) Get(k string) (interface{}, bool)
type MetaCache ¶ added in v1.4.102
type MetaCache struct { basedto.BaseEntitySingle // contains filtered or unexported fields }
func NewMetaCache ¶ added in v1.4.102
func NewMetaCache() *MetaCache
func (*MetaCache) CacheGetType ¶ added in v1.4.102
Click to show internal directories.
Click to hide internal directories.