httpcache.go
func CacheFasthttpFunc(bodyHandler fasthttp.RequestHandler, expiration time.Duration) fasthttp.RequestHandler {
	return CacheFasthttp(bodyHandler, expiration).ServeHTTP
}
func CacheFasthttpFunc(bodyHandler fasthttp.RequestHandler, expiration time.Duration) fasthttp.RequestHandler {
	return CacheFasthttp(bodyHandler, expiration).ServeHTTP
}
func CacheFasthttpFunc ( bodyHandler fasthttp . RequestHandler , expiration time . Duration ) fasthttp . RequestHandler { return CacheFasthttp ( bodyHandler , expiration ) . ServeHTTP }
// CacheFasthttpFunc accepts two parameters
// first is the fasthttp.RequestHandler 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 a fasthttp.RequestHandler, which you can use as your default router or per-route handler
//
// All type of responses are cached, templates, json, text, anything.
//
// You CAN NOT add validators with this function
CacheFasthttpFunc accepts two parameters first is the fasthttp . RequestHandler 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 a fasthttp . RequestHandler which you can use as your default router or per - route handler All type of responses are cached templates json text anything . You CAN NOT add validators with this function