store

package
v0.0.0-...-51e27e0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(typ string, urlS string)

Init takes flag values and initializes datastore

Types

type Inner

type Inner interface {
	Type() string
	Ping() error
	Has(key string) bool
	Set(key string, val string)
	Get(key string) string
	Rem(key string)
	Range(f func(key string, val string) bool)
	HasList(key string) bool
	ListHas(key, value string) bool
	ListAdd(key, value string)
	ListRemove(key, value string)
	ListLen(key string) int
	ListGet(key string) []string
	sync.Locker
}

Inner holds KV values

type Store

type Store struct {
	Inner
}

Store is

var (
	This *Store
)

global singleton

func (Store) Keys

func (p Store) Keys() []string

Keys returns array of all Keys

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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