Documentation ¶
Index ¶
- type BadgerCache
- 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, value interface{}, expires ...int) error
- type Cache
- type Entry
- type RedisCache
- 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, value interface{}, expires ...int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerCache ¶
type BadgerCache struct { Conn *badger.DB Prefix string }
func (*BadgerCache) Empty ¶
func (b *BadgerCache) Empty() error
func (*BadgerCache) EmptyByMatch ¶
func (b *BadgerCache) EmptyByMatch(str string) error
func (*BadgerCache) Forget ¶
func (b *BadgerCache) Forget(str string) error
func (*BadgerCache) Get ¶
func (b *BadgerCache) Get(str string) (interface{}, error)
type RedisCache ¶
func (*RedisCache) Empty ¶
func (c *RedisCache) Empty() error
func (*RedisCache) EmptyByMatch ¶
func (c *RedisCache) EmptyByMatch(str string) error
func (*RedisCache) Forget ¶
func (c *RedisCache) Forget(str string) error
func (*RedisCache) Get ¶
func (c *RedisCache) Get(str string) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.