cache

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 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{})
	Get(key string) string
	Del(key string)
}

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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