storage

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	Set(key, value string, duration time.Duration) error
	Get(key string) (string, error)
	GetExpire(key string) (time.Duration, error)
	Remove(key string) error
	Lock(key string, duration time.Duration) (bool, error)
}

func Store

func Store() Storage

Jump to

Keyboard shortcuts

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