storage

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateKey

func ValidateKey(key string) error

Types

type Storage

type Storage[V any] interface {
	Set(key string, value V) error

	Get(key string, value *V) (bool, error)

	Delete(key string) error

	// Gracefully closes storage
	Close() error
}

Represents an interface that serves storage-related operation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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