Versions in this module Expand all Collapse all v1 v1.0.0 Dec 5, 2022 Changes in this version + type BadgerCache struct + Conn *badger.DB + Prefix string + func (b *BadgerCache) Empty() error + func (b *BadgerCache) EmptyByMatch(str string) error + func (b *BadgerCache) Forget(str string) error + func (b *BadgerCache) Get(str string) (interface{}, error) + func (b *BadgerCache) Has(str string) (bool, error) + func (b *BadgerCache) Set(str string, data interface{}, expires ...int) error + type Cache interface + Empty func() error + EmptyByMatch func(string) error + Forget func(string) error + Get func(string) (interface{}, error) + Has func(string) (bool, error) + Set func(string, interface{}, ...int) error + type Entry map[string]interface + type RedisCache struct + Conn *redis.Pool + Prefix string + func (c *RedisCache) Empty() error + func (c *RedisCache) EmptyByMatch(str string) error + func (c *RedisCache) Forget(str string) error + func (c *RedisCache) Get(str string) (interface{}, error) + func (c *RedisCache) Has(str string) (bool, error) + func (c *RedisCache) Set(str string, data interface{}, expires ...int) error