fsKeyValueStore

package module
v0.0.0-...-10a9f01 Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(key, value string) error

stores a new key / value pair

func CreateIfNonExistentElseUpdate

func CreateIfNonExistentElseUpdate(key, value string) error

Stores a value under the given key if the key / value pair didn't already exist as a persisted entity, it will be created

func Delete

func Delete(key string) error

Deletes the key and the associated value

func Initialize

func Initialize(dirpath ...string)

Creates a filePersistence struct and a directory for it to use and store the js-files in. if no path is given it creates a dir with the name "file-db" right next to the binary

func Read

func Read(key string) (string, error)

Reads the value for the given key returns an error when it can't find the given key

func Update

func Update(key, value string) error

updates an existing key / value pair

Types

This section is empty.

Jump to

Keyboard shortcuts

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