Categorygithub.com/splitio/gincache
modulepackage
0.0.1-rc7
Repository: https://github.com/splitio/gincache.git
Documentation: pkg.go.dev

# README

gincache

# Packages

No description provided by the author

# Functions

New creates a new middleware with a custom key factory function.

# Constants

StickyEntry is the name of the context key to be set when we want an entry to be sticky `sticky` entries are not purged when the cache is full.

# Structs

Middleware struct implements a gin middleware that offers request-caching.
Options wraps all parameters used to configure the caching middleware.

# Interfaces

CacheFlusher defines the interface to be used by components that need to evict/flush entries from the cache.

# Type aliases

KeyFactoryFn defines the function signature for a Key Factory.
SurrogateFactoryFn defines the function signature for a Surrogate key list factory.