cache

package
v16.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cache is an in-memory LRU cache middleware

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Skipper: middleware.DefaultSkipper,
	Cache:   nil,
	Headers: []string{"Content-Type"},
	Prefix:  "",
}

Functions

func New

func New() echo.MiddlewareFunc

func NewWithConfig

func NewWithConfig(config Config) echo.MiddlewareFunc

Types

type Config

type Config struct {
	Skipper middleware.Skipper
	Cache   cache.Cacher
	Headers []string
	Prefix  string
}

Jump to

Keyboard shortcuts

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