victorspringer / http-cache

High performance Golang HTTP middleware for server-side application layer caching, ideal for REST APIs
https://godoc.org/github.com/victorspringer/http-cache
MIT License
339 stars 63 forks source link

Remove hardcoded Redis Ring to allow users to use any Redis mode they want #10

Open binhnguyenduc opened 3 years ago

binhnguyenduc commented 3 years ago

I noticed the hardcode use of Redis Ring in adapter/redis package. This is limiting as it requires users to use Redis Ring if they want to use Redis as cache backend.

I have modified to include a new interface, Rediser. This will allow users to use any type of redis client they want from package redis v7.

If you think this will be of benefits to community, please consider merging this Pull Requests. Thank you.