mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
This commit is contained in:
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@@ -52,7 +52,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/#caching
|
||||
// Examples can be found at: https://github.com/kataras/iris/tree/master/_examples/response-writer/cache
|
||||
func Handler(expiration time.Duration) context.Handler {
|
||||
h := Cache(expiration).ServeHTTP
|
||||
return h
|
||||
|
||||
Reference in New Issue
Block a user