kv

package
v1.14.0-dev.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValue

type KeyValue interface {
	// Setnx sets key to hold string value if key does not exist otherwise return an error
	Setnx(key string, value interface{}) error
	// Set key to hold the string value. If key already holds a value, it is overwritten
	Set(key string, value interface{}) error
	Get(key string, val interface{}) (bool, error)
	GetKeyedState(key string) (interface{}, error)
	SetKeyedState(key string, value interface{}) error
	// Delete must return *common.Error with NOT_FOUND error
	Delete(key string) error
	Keys() (keys []string, err error)
	All() (all map[string]string, err error)
	Clean() error
	Drop() error
}

type Tskv

type Tskv interface {
	Set(k int64, v interface{}) (inserted bool, err error)
	Get(k int64, v interface{}) (found bool, err error)
	Last(v interface{}) (key int64, err error)
	Delete(k int64) error
	DeleteBefore(int64) error
	Close() error
	Drop() error
}

Jump to

Keyboard shortcuts

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