Skip to content

[QUESTION]Question regarding Client Side Caching  #7681

@daidaotong

Description

@daidaotong

Hello, I have a question regarding Client-Side Caching Server Side Implementation, in https://github.com/redis/redis/blob/unstable/src/tracking.c#L360, trackingInvalidateKeysOnFlush function, we sent out tracking invalidation messages to all the clients which enabled tracking, no matter whether it is FLUSHDB or FLUSHALL case. however, Why we only clean up the tracking table for FLUSHALL case only? I think we can safely clean up the tracking table no matter whether it is FLUSHDB or FLUSHALL case, since the invalidation message for both cases are sending out, and this feature doesn't distinguish for DB. Or am I missing something? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions