cache

package
v0.0.0-...-8c5539c Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client *redis.Client

	NeedsFlush = make(map[string]bool)
)

Functions

func CacheReqResponse

func CacheReqResponse(req *http.Request, rd []byte) error

func FlushChainCache

func FlushChainCache(chain string) error

func Flushable

func Flushable(chain string) error

func Flusher

func Flusher()

func Get

func Get(key string) (string, error)

func Init

func Init() error

func Middleware

func Middleware(h http.Handler) http.Handler

func ResponseFromCache

func ResponseFromCache(req *http.Request) ([]byte, error)

func Set

func Set(key string, value string, exp time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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