db

package
v0.0.0-...-08df8c8 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdPackage

type CmdPackage struct {
	Args [][]byte
	Ch   chan interface{}
}

type DB

type DB struct {
	StrMap       []map[string][]byte
	ListMap      []map[string]*list.List
	SetMap       []map[string]*data_struct.Set
	ZSkipListMap []map[string]*data_struct.ZSkipList

	ExecQueue []chan CmdPackage

	UseCpuNum uint32
	// contains filtered or unexported fields
}

func GetDB

func GetDB() *DB

func (*DB) Del

func (d *DB) Del(index uint32, args ...[]byte) interface{}

func (*DB) Expire

func (d *DB) Expire(index uint32, args ...[]byte) interface{}

func (*DB) Get

func (d *DB) Get(index uint32, args ...[]byte) interface{}

func (*DB) Hash

func (d *DB) Hash(bytes []byte) uint32

func (*DB) LLen

func (d *DB) LLen(index uint32, args ...[]byte) interface{}

func (*DB) RLPop

func (d *DB) RLPop(index uint32, args ...[]byte) interface{}

func (*DB) RPush

func (d *DB) RPush(index uint32, args ...[]byte) interface{}

func (*DB) SAdd

func (d *DB) SAdd(index uint32, args ...[]byte) interface{}

func (*DB) SMembers

func (d *DB) SMembers(index uint32, args ...[]byte) interface{}

func (*DB) Set

func (d *DB) Set(index uint32, args ...[]byte) interface{}

func (*DB) SetEx

func (d *DB) SetEx(index uint32, args ...[]byte) interface{}

func (*DB) SetNx

func (d *DB) SetNx(index uint32, args ...[]byte) interface{}

func (*DB) SisMember

func (d *DB) SisMember(index uint32, args ...[]byte) interface{}

func (*DB) Work

func (d *DB) Work()

Jump to

Keyboard shortcuts

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