gin-contrib / cache

Gin middleware/handler to enable Cache
https://gin-gonic.github.io/gin
MIT License
365 stars 95 forks source link

Make this an actual middleware #59

Closed Aefyr closed 4 years ago

Aefyr commented 4 years ago

I'm not sure why this was designed as a wrapper function but that broke ginprom because all of the handler funcs had the same name, so I made this an actual middleware that can be attached via gin.Use. Tests pass, so it's probably fine

Aefyr commented 4 years ago

I made these changes on my master branch, but it looks like there's more to change, so I'll move these to a dedicated branch