store

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 1 Imported by: 0

README

store

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Nil = errors.New("store nil")
)

Functions

func InitStore

func InitStore(bucket string, store Store)

Types

type Store

type Store interface {
	Put(key string, value []byte) error
	PutTTL(key string, value []byte, ttl int64) error
	Get(key string) ([]byte, error)
	Exist(key string) (bool, error)
	Delete(key string) error
}

func Get

func Get(bucket string) Store

func NewChain

func NewChain(store ...Store) Store

NewChain 存储链

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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