store

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MaxAppendLength = 100

MaxAppendLength defines max stored commands threshold

Variables

This section is empty.

Functions

func Append

func Append(key string, value interface{}) error

Append value to given key. Expects the value to be an array or not set. Acts as FIFO if length should be greater than MaxAppendLength, the first value appended is the first to go.

func Get

func Get(key string) interface{}

Get configuration value for key.

func Initialize

func Initialize()

Initialize reads the configuration from config file. File is created if not present.

func Set

func Set(key string, value interface{}) error

Set configuration key-value pair. Value is immediately saved to config file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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