Skip to content

Help: Understanding Grace period? #110

@osseonews

Description

@osseonews

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions