interfaces

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 0 Imported by: 40

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

type Store

type Store interface {
	InitDB() error
	InitData() error
	Put(key string, value string) error
	Get(key string) (*KeyValue, error)
	GetList(key string, sortAscend bool) ([]*KeyValue, error)
	Delete(key string) error
	Close() error

	// --- management, nutsdb only
	Merge() error
}

Jump to

Keyboard shortcuts

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