cache icon indicating copy to clipboard operation
cache copied to clipboard

Gin middleware/handler to enable Cache

Results 44 cache issues
Sort by recently updated
recently updated
newest added

This defect is explained in these two issues: - https://github.com/gin-gonic/gin/issues/1673 - https://github.com/golang/go/issues/29332#issuecomment-448669442 Gin has fixed it's module dep, but this cache middleware is still referencing the problem ugorji release tag....

Check here: https://github.com/gin-contrib/gzip/issues/5

You may find the source code at https://github.com/fzlee/GoldenFly. it's a personal blog In all, the following code demonstrates the way I use this middleware ```go // main.go, init memory store...

Hi, I wonder if I can set a customer header to inform the client that the cache has been hit. Is this even possible? I didn't find any resolutions through...

the append result "data" is now using the same as param input "data". when a cached file which size is more than 32768 there are more than one Write() invoked...

Hi guys, Hope you are all well ! Just was wondering if it could be possible to add badger as persistent store. It is fast and reliable. ref. https://github.com/dgraph-io/badger Cheers,...

How to use cache.Cache middleware?

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

I have made a small POC. As per code and comments in middleware, it will cache any response with response code < 300, but its caching only 200.