httpcache.go
func CacheFasthttp(bodyHandler fasthttp.RequestHandler, expiration time.Duration) *fhttp.Handler {
	return fhttp.NewHandler(bodyHandler, expiration)
}
func CacheFasthttp(bodyHandler fasthttp.RequestHandler, expiration time.Duration) *fhttp.Handler {
	return fhttp.NewHandler(bodyHandler, expiration)
}
func CacheFasthttp ( bodyHandler fasthttp . RequestHandler , expiration time . Duration ) * fhttp . Handler { return fhttp . NewHandler ( bodyHandler , expiration ) }
// CacheFasthttp 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 fhttp.Handler with a ServeHTTP which is the 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 add validators with this function
CacheFasthttp 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 fhttp . Handler with a ServeHTTP which is the 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 add validators with this function