store

package
v0.0.0-...-b9cf7ac Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTTL = time.Hour * 24 * 31

Variables

View Source
var ErrKeyDoesNotExist = errors.New("key does not exist")

Functions

This section is empty.

Types

type Store

type Store interface {
	Set(ctx context.Context, key string, value []byte) error
	Get(ctx context.Context, key string) (string, error)
	Delete(ctx context.Context, key string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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