leveldb

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 leveldb use the https://github.com/syndtr/goleveldb as cache driver

Index

Constants

View Source
const Name = "leveldb"

Name driver name

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelDB

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

LevelDB definition

func (*LevelDB) Clear

func (c *LevelDB) Clear() error

func (*LevelDB) Close

func (c *LevelDB) Close() error

func (*LevelDB) Del

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

func (*LevelDB) DelMulti

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

func (*LevelDB) Get

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

func (*LevelDB) GetMulti

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

func (*LevelDB) Has

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

func (*LevelDB) Set

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

func (*LevelDB) SetMulti

func (c *LevelDB) 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