storage

package
v0.0.0-...-1858810 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LRU = iota
	Redis
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ST

type ST interface {
	Get(key string) (string, error)
	Update(key, value string) error
	Create(key, value string) error
	Delete(key string) error
}

type STFactory

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

func NewSTFactory

func NewSTFactory(log *logrus.Logger, size int, ttl *time.Duration) *STFactory

func (*STFactory) Build

func (stf *STFactory) Build(typeST int) *ST

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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