-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce pluggable backend cache for the HTTP layer. #495
Conversation
Right now, I have implemented two storage systems, Memory and Redis. I think a 3rd option would be useful as well, a mix of both, where Redis is used to synchronize local cache between N nodes, but the caching is always local. I can work on a prototype if this sounds like a good idea. /cc @callebtc @thesimplekid |
e7efec3
to
d80a7bb
Compare
I made redis optional now @thesimplekid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we just need to add docs for how to run redis or at least note it must be run externally and link to something. Maybe add it to docker compose?
Other then that LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a redis container to the docker-compose and the ability to read the cache config from env vars. But @crodas can you take a look at what is causing the panic I noted.
6a96e9d
to
333159a
Compare
Co-authored-by: thesimplekid <tsk@thesimplekid.com>
1. Remove `new` from trait, it made no sense, added a function to modify the ttl and tti instead 2. Removed `unwrap` and add logs instead
333159a
to
a26bb7a
Compare
Use a more rusty expr instead of match
9d83391
to
8f3104f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM
ACK 8f3104f
--------- Co-authored-by: thesimplekid <tsk@thesimplekid.com>
Description
Fixes #478.
Notes to the reviewers
Suggested CHANGELOG Updates
CHANGED
ADDED
Add support for custom storages for the HTTP cache layer.
REMOVED
FIXED
Checklist
just final-check
before committing