express-redis-cache icon indicating copy to clipboard operation
express-redis-cache copied to clipboard

Hi,could I make a suggestion?

Open lasting0001 opened this issue 10 years ago • 3 comments

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~

lasting0001 avatar Nov 03 '15 03:11 lasting0001

Thanks. This is an idea I've been playing with. I welcome a pull request :)

rv-kip avatar Nov 03 '15 21:11 rv-kip

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

ScheerMT avatar Dec 17 '15 18:12 ScheerMT

Thanks a lot~

lasting0001 avatar Feb 22 '17 03:02 lasting0001