Documentation ¶
Index ¶
- type Cache
- type CacheInterface
- type Config
- type FreeCache
- func (cache *FreeCache) Clear(ctx context.Context) error
- func (cache *FreeCache) Delete(ctx context.Context, key interface{}) error
- func (cache *FreeCache) Get(ctx context.Context, key interface{}) (interface{}, error)
- func (cache *FreeCache) Set(ctx context.Context, key, object interface{}, options *store.Options) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
这是为自己项目的缓存而设计的;
var CacheManager *Cache
func NewCache ¶
func NewCache(cache CacheInterface) *Cache
type CacheInterface ¶
Click to show internal directories.
Click to hide internal directories.