kv

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package kv defines a Store interfaces that can be implemented by datastores to provide key value storage capabilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Set(ctx context.Context, key string, value []byte) error
	Get(ctx context.Context, key string) (keyExists bool, value []byte, err error)
	Close(ctx context.Context) error
}

Store specifies a key value storage interface.

Directories

Path Synopsis
Package autocache implements a key value store (kv.Store) using autocache which combines functionality from groupcache, and memberlist libraries.
Package autocache implements a key value store (kv.Store) using autocache which combines functionality from groupcache, and memberlist libraries.
Package bolt implements a key value store (kv.Store) using bbolt.
Package bolt implements a key value store (kv.Store) using bbolt.
Package redis implements a key value store (kv.Store) using redis.
Package redis implements a key value store (kv.Store) using redis.

Jump to

Keyboard shortcuts

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