store

package
v0.5.57 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 5 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 GetAll added in v0.5.46

func GetAll(key string) []interface{}

GetAll returns all the values stored against the 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 but the data has changed then it will also be added to the list. It computes md5 hash of the data to check if the data already exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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