store

package
v0.0.0-...-3f44578 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStore

type FileStore struct {
	// contains filtered or unexported fields
}

func NewFileStore

func NewFileStore() *FileStore

func (*FileStore) Clear

func (s *FileStore) Clear() error

func (*FileStore) Get

func (s *FileStore) Get(key string) (string, error)

func (*FileStore) Set

func (s *FileStore) Set(key, value string) error

func (*FileStore) SetFilePath

func (s *FileStore) SetFilePath(path string)

type MemoryStore

type MemoryStore struct {
	// contains filtered or unexported fields
}

func NewMemoryStore

func NewMemoryStore() *MemoryStore

func (*MemoryStore) Clear

func (s *MemoryStore) Clear() error

func (*MemoryStore) Get

func (s *MemoryStore) Get(key string) (string, error)

func (*MemoryStore) Set

func (s *MemoryStore) Set(key, value string) error

type Store

type Store interface {
	Set(key, value string) error
	Get(key string) (string, error)
	Clear() error
}

Jump to

Keyboard shortcuts

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