Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 597 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 597 Bytes

Go Reference codecov

Simple cache for gin

Simple memory cache for gin API.

E.g.:

  • Create an API cache adding the middleware to your route:
router.POST("/cache/list", gincache.CacheMiddleware(time.Hour*24, func(c *gin.Context) {
    // handler implementation		
}))