Skip to content
PantaniPublic

About

Simple memory cache middleware for gin API.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

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		
}))

About

Simple memory cache middleware for gin API.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages