express-redis-cache
express-redis-cache copied to clipboard
Hi,could I make a suggestion?
When the cache expires,return the cache first,and then restore the cache asynchronously.In this way,the user can aways take a response quickly.Thank you~
Thanks. This is an idea I've been playing with. I welcome a pull request :)
This is interesting. My first thought would be checking the time until it expires and when it is below a certain threshhold (a minute left, 30seconds, configurable time) it will goto the route that it sits behind.. it would get complicated fast
Thanks a lot~