gin-contrib / cache

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

Proposal to use Souin as an HTTP cache system #77

Closed darkweak closed 2 years ago

darkweak commented 2 years ago

Hello there, first thank you for your awesome work on gin and the ecosystem. I would know if it would be accepted if I apply for integrate the Souin HTTP cache system as the cache management system in the gin cache contrib middleware ? It supports a distributed and not distributed storage systems using Olric (the distributed one) and Badger (the non distributed), it suits the RFC-7234 and supports the Cache-Status HTTP header with the associated new RFC. I already wrote a middleware handler for Træfik, caddy (which one will replace the official one soon), for Tyk and echo. Souin can invalidate the CDN placed on top of your stack such as Cloudflare, Fastly, ... and can set the returned data into the CDN cache to be served as fast as possible. This would delegate the core management to a fully working solution which respect the standards.

Open to discuss about it with you ✌️.

darkweak commented 2 years ago

A possible integration of this plugin is available here https://github.com/darkweak/souin/pull/165/files.