Documentation ¶
Index ¶
- Variables
- func New() cacher.Cacher
- type BadgerCache
- func (b *BadgerCache) Clear() error
- func (b *BadgerCache) Delete(key string) error
- func (b *BadgerCache) DeleteMultiple(keys ...string) error
- func (b BadgerCache) Get(key string) ([]byte, error)
- func (b BadgerCache) GetD(key string, v []byte) []byte
- func (b BadgerCache) GetMultiple(keys ...string) (map[string][]byte, error)
- func (b BadgerCache) Has(key string) (bool, error)
- func (b *BadgerCache) Set(key string, val []byte) error
- func (b *BadgerCache) SetMultiple(values map[string][]byte) error
- func (b *BadgerCache) SetWithTTL(key string, val []byte, ttl int64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCachePath = "cache"
Functions ¶
Types ¶
type BadgerCache ¶
type BadgerCache struct {
// contains filtered or unexported fields
}
func (*BadgerCache) Clear ¶
func (b *BadgerCache) Clear() error
func (*BadgerCache) Delete ¶
func (b *BadgerCache) Delete(key string) error
func (*BadgerCache) DeleteMultiple ¶
func (b *BadgerCache) DeleteMultiple(keys ...string) error
func (BadgerCache) GetMultiple ¶
func (b BadgerCache) GetMultiple(keys ...string) (map[string][]byte, error)
func (*BadgerCache) SetMultiple ¶
func (b *BadgerCache) SetMultiple(values map[string][]byte) error
func (*BadgerCache) SetWithTTL ¶
func (b *BadgerCache) SetWithTTL(key string, val []byte, ttl int64) error
Click to show internal directories.
Click to hide internal directories.