1
0
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:
Gerasimos (Makis) Maropoulos
2020-06-07 15:26:06 +03:00
parent 9fdcb4c7fb
commit ed45c77be5
328 changed files with 4262 additions and 41621 deletions

2
cache/cache.go vendored
View File

@@ -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