Documentation
¶
Index ¶
- Constants
- Variables
- func CacheGet[T any](Key string) (*T, bool)
- func CacheSet[T any](Key string, object *T)
- func Delete[T any](Key string)
- 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 ¶
Variables ¶
View Source
var FileCache = NewFileCache()
Functions ¶
func InjectIchubCache ¶
func InjectIchubCache(s *IchubCache)
func LoadIchubCache ¶
func LoadIchubCache() baseiface.ISingleton
func LoadMetaCache ¶
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 ¶
func FindBeanIchubCache() *IchubCache
func NewCache ¶
func NewCache() *IchubCache
func NewIchubCache ¶
func NewIchubCache(Pkey string) *IchubCache
func (*IchubCache) Delete ¶
func (this *IchubCache) Delete(Key string)
func (*IchubCache) Get ¶
func (this *IchubCache) Get(k string) (interface{}, bool)
func (*IchubCache) Set ¶
func (this *IchubCache) Set(k string, x interface{}, d time.Duration)
type MetaCache ¶
type MetaCache struct { basedto.BaseEntitySingle // contains filtered or unexported fields }
func (*MetaCache) CacheGetType ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.