Documentation ¶ Index ¶ type Bigcache func NewBigcache(c *Config) (*Bigcache, error) func (c *Bigcache) Delete(key string) error func (c *Bigcache) Get(key string, ptrToObject interface{}) error func (c *Bigcache) Set(key string, object interface{}) error type Config func (c *Config) NewCache() (cache.Cache, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Bigcache ¶ type Bigcache struct { // contains filtered or unexported fields } func NewBigcache ¶ func NewBigcache(c *Config) (*Bigcache, error) func (*Bigcache) Delete ¶ func (c *Bigcache) Delete(key string) error func (*Bigcache) Get ¶ func (c *Bigcache) Get(key string, ptrToObject interface{}) error func (*Bigcache) Set ¶ func (c *Bigcache) Set(key string, object interface{}) error type Config ¶ type Config struct { MaxCacheSizeInMB int //CacheLifetime if set, entries older than the lifetime will be deleted on cleanup (every minute) CacheLifetime time.Duration } func (*Config) NewCache ¶ func (c *Config) NewCache() (cache.Cache, error) Source Files ¶ View all Source files cache.go config.go Click to show internal directories. Click to hide internal directories.