Skip to content

Commit

Permalink
新增缓存组件
Browse files Browse the repository at this point in the history
  • Loading branch information
qmcloud123 committed Apr 7, 2021
1 parent 536d36f commit 5177d27
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/lib/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ func Logger() HandlerFunc {
log.Printf("[%d] %s in %v", c.StatusCode, c.Req.RequestURI, time.Since(t))
}
}

func Test() HandlerFunc {
return func(c *Context) {
log.Printf("[%d] %s", c.StatusCode, c.Req.RequestURI)
}
}
9 changes: 9 additions & 0 deletions engine/middleware/cache/cahce.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package egg

import "fmt"

func Test() {

fmt.Println("Cache")

}

0 comments on commit 5177d27

Please sign in to comment.