cache

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCacheType = errors.New("invalid cache type")

ErrInvalidCacheType is error for invalid cache type.

Functions

func New

func New(cacheType CacheType, address string, password string, expiredTime time.Duration) (cache.Cacher, error)

New to create new cache client depends on the type.

Types

type CacheType

type CacheType int8

CacheType is type for cache.

const (
	NOP CacheType = iota
	InMemory
	Redis
)

Available types for cache.

Jump to

Keyboard shortcuts

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