I'm currently working with a Redis cluster that consists of a primary node and a replica node. I've noticed that when I delete keys on the primary node, they still seem to persist on the replica node for a while.
I've been using the ioredis library in Node.js to interact with Redis, and I'm wondering what the best approach is for ensuring that when I delete a key on the primary node, it gets deleted across all nodes in the cluster, including the replica.