cache

package
v0.0.0-...-c6c9c2c Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoExpiration      time.Duration = -1
	DefaultExpiration time.Duration = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(k string) (interface{}, bool)
	Set(k string, v interface{}, d time.Duration) error
}

func LoadInMemory

func LoadInMemory() Cache

func LoadRedis

func LoadRedis() Cache

Jump to

Keyboard shortcuts

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