rleveldb

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheType added in v0.2.0

type CacheType struct {
	Data    []byte `json:"data"`
	Created int64  `json:"created"`
	Expire  int64  `json:"expire"`
}

type LevelDB

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

func NewBloomFilter

func NewBloomFilter(dbPath string, bits int) (*LevelDB, error)

func NewLevelDB

func NewLevelDB(dbPath string) (*LevelDB, error)

func (*LevelDB) Begin

func (l *LevelDB) Begin() (*leveldb.Transaction, error)

func (*LevelDB) Close

func (l *LevelDB) Close() error

func (*LevelDB) Delete

func (l *LevelDB) Delete(key []byte) error

func (*LevelDB) DeleteS added in v0.2.2

func (l *LevelDB) DeleteS(key string) error

func (*LevelDB) Get

func (l *LevelDB) Get(key []byte) ([]byte, error)

func (*LevelDB) GetS added in v0.2.2

func (l *LevelDB) GetS(key string) (string, error)

func (*LevelDB) Has added in v0.1.1

func (l *LevelDB) Has(key []byte) (bool, error)

func (*LevelDB) HasS added in v0.2.2

func (l *LevelDB) HasS(key string) (bool, error)

func (*LevelDB) Put

func (l *LevelDB) Put(key []byte, value []byte) error

func (*LevelDB) PutS added in v0.2.2

func (l *LevelDB) PutS(key string, value string) error

func (*LevelDB) XDecr added in v0.2.2

func (l *LevelDB) XDecr(key string) (int64, error)

func (*LevelDB) XDecrBy added in v0.2.2

func (l *LevelDB) XDecrBy(key string, decrement int64) (int64, error)

func (*LevelDB) XExpire added in v0.2.2

func (l *LevelDB) XExpire(key string, seconds int64) error

func (*LevelDB) XGet added in v0.2.2

func (l *LevelDB) XGet(key string) (string, error)

func (*LevelDB) XIncr added in v0.2.2

func (l *LevelDB) XIncr(key string) (int64, error)

func (*LevelDB) XIncrBy added in v0.2.2

func (l *LevelDB) XIncrBy(key string, increment int64) (int64, error)

func (*LevelDB) XSet added in v0.2.2

func (l *LevelDB) XSet(key string, value string) error

func (*LevelDB) XSetEx added in v0.2.2

func (l *LevelDB) XSetEx(key string, value string, expires int64) error

func (*LevelDB) XTTL added in v0.2.2

func (l *LevelDB) XTTL(key string) (int64, error)

Jump to

Keyboard shortcuts

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