store

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package store provides methods for interacting with a thread safe global store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) (interface{}, bool)

Get will get the value corresponding to the given key

func Initialize

func Initialize()

Initialize initializes the global store

It will skip initialization if the store has already been initialized once

func PrefixMatch

func PrefixMatch(key string) (res []interface{})

PrefixMatch will return all the values which matches the given key

func Set

func Set(key string, value interface{})

Set will set the key value pairs in the global store

If the key already exists then it will OVERWRITE those values

Types

This section is empty.

Jump to

Keyboard shortcuts

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