package
8.4.4+incompatible
Repository: https://github.com/codehakase/iris.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AcquireResponseRecorder returns a ResponseRecorder.
GetMaxAge parses the "Cache-Control" header and returns a LifeChanger which can be passed to the response's Reset.
NewClientHandler returns a new remote client handler which asks the remote handler the cached entry's response with a GET request, or add a response with POST request these all are done automatically, users can use this handler as they use the local.go/NewHandler the ClientHandler is useful when user wants to apply horizontal scaling to the app and has a central http server which handles.
NewHandler returns a new cached handler for the "bodyHandler" which expires every "expiration".
NoCache disables the cache for a particular request, can be used as a middleware or called manually from the handler.
ReleaseResponseRecorder releases a ResponseRecorder which has been previously received by AcquireResponseRecorder.

# Variables

Client is used inside the global Request function this client is an exported to give you a freedom of change its Transport, Timeout and so on(in case of ssl).
DefaultRuleSet is a list of the default pre-cache validators which exists in ALL handlers, local and remote.

# Structs

ClientHandler is the client-side handler for each of the cached route paths's response register one client handler per route.
Handler the local cache service handler contains the original bodyHandler, the memory cache entry and the validator for each of the incoming requests and post responses.
ResponseRecorder is used by httpcache to be able to get the Body and the StatusCode of a request handler.