caches

package
v0.0.0-...-4e22d16 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisCache

type RedisCache interface {
	Set(key string, value interface{}) error
	Get(key string) (string, error)
	Del(key string) error
}

func NewRedisCache

func NewRedisCache(host string, db int, password string, expires time.Duration) RedisCache

type RistrettoCache

type RistrettoCache interface {
	Set(key string, value interface{})
	Get(key string) interface{}
	Del(key ...string)
}

func NewRistrettoCache

func NewRistrettoCache() (RistrettoCache, error)

Jump to

Keyboard shortcuts

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