providers

package
v2.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Memory indicates a memory cache
	Memory = Provider(iota)
	// Filesystem indicates a filesystem cache
	Filesystem
	// Redis indicates a Redis cache
	Redis
	// Bbolt indicates a Bbolt cache
	Bbolt
	// BadgerDB indicates a BadgerDB cache
	BadgerDB
)

Variables

View Source
var Names = map[string]Provider{
	"memory":     Memory,
	"filesystem": Filesystem,
	"redis":      Redis,
	"bbolt":      Bbolt,
	"badger":     BadgerDB,
}

Names is a map of cache providers keyed by name

View Source
var Values = make(map[Provider]string)

Values is a map of cache providers keyed by internal id

Functions

This section is empty.

Types

type Provider

type Provider int

Provider enumerates the cache providers

func (Provider) String

func (p Provider) String() string

Jump to

Keyboard shortcuts

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