leveldb

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeveldbStore

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

func NewLeveldbStore

func NewLeveldbStore(path string, expireTime time.Duration) *LeveldbStore

func NewWithLeveldb

func NewWithLeveldb(db *leveldb.DB, expireTime time.Duration) *LeveldbStore

func (*LeveldbStore) Del

func (l *LeveldbStore) Del(ctx context.Context, id string)

func (*LeveldbStore) GCOnce

func (l *LeveldbStore) GCOnce()

func (*LeveldbStore) Get

func (l *LeveldbStore) Get(ctx context.Context, id string) (digits []byte)

func (*LeveldbStore) Set

func (l *LeveldbStore) Set(ctx context.Context, id string, digits []byte)

Jump to

Keyboard shortcuts

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