Documentation ¶
Overview ¶
Package cache basic cache package; use allegro/bigcache
Index ¶
- Variables
- func LoadCache() error
- func LoadOptions() error
- type Cache
- func (c *Cache) DeleteCache(key string) error
- func (c *Cache) Flush() error
- func (c *Cache) GetCache(key string) (string, bool)
- func (c *Cache) GetCacheWithByte(key string) ([]byte, bool)
- func (c *Cache) SetCache(key, value string) error
- func (c *Cache) SetCacheWithByte(key string, value []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Options *optionCache
Options option instance
Functions ¶
Types ¶
type Cache ¶
Cache cache struct
var Instance *Cache
Instance cache instance
func (*Cache) DeleteCache ¶
DeleteCache delete cache by key
func (*Cache) GetCacheWithByte ¶
GetCacheWithByte get cache by key. It returns the cache value in byte and ifFound
Click to show internal directories.
Click to hide internal directories.