Documentation ¶
Index ¶
- type DefaultCache
- func (d *DefaultCache) Clear()
- func (d *DefaultCache) Del(key string) (affected bool)
- func (d *DefaultCache) EntryCount() (entryCount int64)
- func (d *DefaultCache) Get(key string) (value interface{}, err error)
- func (d *DefaultCache) Range(f func(key, value interface{}) bool)
- func (d *DefaultCache) Set(key string, value interface{}, expireSeconds int) (err error)
- type DefaultCacheFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultCache ¶
type DefaultCache struct {
// contains filtered or unexported fields
}
DefaultCache 默认缓存
func (*DefaultCache) EntryCount ¶
func (d *DefaultCache) EntryCount() (entryCount int64)
EntryCount 获取实体数量
func (*DefaultCache) Get ¶
func (d *DefaultCache) Get(key string) (value interface{}, err error)
Get 获取缓存
func (*DefaultCache) Range ¶
func (d *DefaultCache) Range(f func(key, value interface{}) bool)
Range 遍历缓存
type DefaultCacheFactory ¶
type DefaultCacheFactory struct { }
DefaultCacheFactory 构造默认缓存组件工厂类
func (*DefaultCacheFactory) Create ¶
func (d *DefaultCacheFactory) Create() agcache.CacheInterface
Create 创建默认缓存组件
Click to show internal directories.
Click to hide internal directories.