memory

package
v0.0.0-...-ee9fa08 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Store is a in memory implement of Store.

func NewStore

func NewStore() *Store

NewStore return a new Store.

func (*Store) Add

func (s *Store) Add(namespace, typ, key string, value []byte) error

func (*Store) Del

func (s *Store) Del(namespace, typ, key string) error

func (*Store) Event

func (s *Store) Event() <-chan struct{}

func (*Store) Exist

func (s *Store) Exist(namespace, typ, key string) bool

func (*Store) Get

func (s *Store) Get(namespace, typ, key string) ([]byte, error)

func (*Store) GetKeys

func (s *Store) GetKeys(namespace, typ string) ([]string, error)

func (*Store) Start

func (s *Store) Start() error

func (*Store) Stop

func (s *Store) Stop()

func (*Store) Subscribe

func (s *Store) Subscribe(namespace string) error

func (*Store) UnSubscribe

func (s *Store) UnSubscribe(namespace string) error

func (*Store) Update

func (s *Store) Update(namespace, typ, key string, value []byte) error

Jump to

Keyboard shortcuts

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