badgercache

package
v0.0.0-...-61f2a12 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PluginConfig = &badgercacheConfig{
		done: make(chan struct{}),
	}
)

Config ...

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache stores and retrieves data using Badger KV.

func Attach

func Attach(db *badger.DB) *Cache

func New

func New(config *Config) *Cache

func (*Cache) Close

func (c *Cache) Close() error

Close closes the underlying boltdb database.

type Config

type Config struct {
	Dir        string
	ValueDir   string
	SyncWrites bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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