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

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Package ruleset provides the basics rules which are being extended by rules.
No description provided by the author

# Functions

Cache accepts two parameters first is the context.Handler which you want to cache its result the second is, optional, the cache Entry's expiration duration if the expiration <=2 seconds then expiration is taken by the "cache-control's maxage" header returns context.Handler, which you can use as your default router or per-route handler All types of response can be cached, templates, json, text, anything.
Handler accepts one single parameter: the cache Entry's expiration duration if the expiration <=2 seconds then expiration is taken by the "cache-control's maxage" header returns context.Handler.
WrapHandler accepts two parameters first is the context.Handler which you want to cache its result the second is, optional, the cache Entry's expiration duration if the expiration <=2 seconds then expiration is taken by the "cache-control's maxage" header returns context.Handler, which you can use as your default router or per-route handler All types of response can be cached, templates, json, text, anything.

# Variables

NoCache disables the cache for a particular request, can be used as a middleware or called manually from the handler.