-
-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Sorry, if this sounds like a silly question, but I don't understand how the grace period works. If we are caching something in Redis and set a TTL, I assume this uses the TTL in Redis and so the Redis key expires in the TTL. So then how does the Grace period extend that? Or is that when you use the Grace period, the actual TTL value in Redis is set to the Grace value and not the TTL? If so, what is the point of the TTL exactly and how is it stored? I am tempted to think Grace is about in memory storage, but how can something be stored in memory so long in Node? usually, in my experience after a request, subsequent requests will get memory for about 5 minutes. So what does the Grace accomplish, the value will be evicted from memory already anyway, so where would the Grace actually be applicable?