store

package
v0.0.0-...-70d2662 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Set(key, value string) error
	Get(key string) (string, error)
	Delete(key string) error
	Len() int                                 // get store size
	ForEach(func(string, string) error) error // apply func on each each entry. If error occurs, inne loop breaks
}

Store is not thread-safe.

func NewInmemStore

func NewInmemStore() Store

Jump to

Keyboard shortcuts

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