vars

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	DBType() string
	Open(path string) error
	Close() error
	Size() int64
	GC() error
	Set(key, value string) error
	Get(key string) (string, error)
	Del(keys []string) error
	HSet(hashmap, key, value string) error
	HGet(hashmap, key string) (string, error)
	HDel(hashmap string, keys []string) error
	HGetAll(hashmap string) (map[string]string, error)
	HKeys(hashmap string) ([]string, error)
	HLen(hashmap string) (int, error)
	Iter(prefetch, includeOffset bool, offset, prefix string, handler func(key, value string) bool) error
}

Interface of a database backend

var Database Backend

Jump to

Keyboard shortcuts

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