mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
rename master branch to main
This commit is contained in:
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@@ -64,7 +64,7 @@ func Cache(expiration time.Duration) *client.Handler {
|
||||
// Handler like `Cache` but returns an Iris Handler to be used as a middleware.
|
||||
// For more options use the `Cache`.
|
||||
//
|
||||
// Examples can be found at: https://github.com/kataras/iris/tree/master/_examples/response-writer/cache
|
||||
// Examples can be found at: https://github.com/kataras/iris/tree/main/_examples/response-writer/cache
|
||||
func Handler(expiration time.Duration) context.Handler {
|
||||
h := Cache(expiration).ServeHTTP
|
||||
return h
|
||||
|
||||
Reference in New Issue
Block a user