kvstore

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVStore

type KVStore interface {
	Get(key string) (string, error)
	Set(key, val string, seconds int64) error
	Del(key ...string) error
	Tx() Tx
	Subtree(prefix string) KVStore
}

KVStore is a service wrapper around a kv store client

type Resulter added in v0.2.5

type Resulter interface {
	Result() (string, error)
}

type Service

type Service interface {
	governor.Service
	KVStore
}

func New

func New() Service

New creates a new cache service

type Tx added in v0.2.5

type Tx interface {
	Get(key string) Resulter
	Set(key, val string, seconds int64)
	Del(key ...string)
	Subtree(prefix string) Tx
	Exec() error
}

Jump to

Keyboard shortcuts

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