cache

package module
v0.0.0-...-c836abb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2019 License: MIT Imports: 5 Imported by: 0

README

badger-cache

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPath = "cache"

Functions

func NewBadgerCache

func NewBadgerCache(path string) cacher.Cacher

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) Get

func (b BadgerCache) Get(key string) ([]byte, error)

func (BadgerCache) GetD

func (b BadgerCache) GetD(key string, v []byte) []byte

func (BadgerCache) GetMultiple

func (b BadgerCache) GetMultiple(keys ...string) (map[string][]byte, error)

func (BadgerCache) Has

func (b BadgerCache) Has(key string) (bool, error)

func (*BadgerCache) Set

func (b *BadgerCache) Set(key string, val []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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL