providers

package
v1.1.0-beta7.0...-3ae970a Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 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