badger

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package badger use the https://github.com/dgraph-io/badger as cache driver

Index

Constants

View Source
const Name = "badger"

Name driver name

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerDB

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

BadgerDB definition

func (*BadgerDB) Clear

func (c *BadgerDB) Clear() error

func (*BadgerDB) Close

func (c *BadgerDB) Close() error

func (*BadgerDB) Del

func (c *BadgerDB) Del(key string) error

func (*BadgerDB) DelMulti

func (c *BadgerDB) DelMulti(keys []string) error

func (*BadgerDB) Get

func (c *BadgerDB) Get(key string) interface{}

func (*BadgerDB) GetMulti

func (c *BadgerDB) GetMulti(keys []string) map[string]interface{}

func (*BadgerDB) Has

func (c *BadgerDB) Has(key string) bool

func (*BadgerDB) Set

func (c *BadgerDB) Set(key string, val interface{}, ttl time.Duration) (err error)

func (*BadgerDB) SetMulti

func (c *BadgerDB) SetMulti(values map[string]interface{}, ttl time.Duration) (err error)

Jump to

Keyboard shortcuts

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