Reputation: 41658
I have a large collection of Redis key/value pairs in some namespace (i.e. the key has some prefix). The source for this collection is updated periodically; it mostly stays the same, but some keys are added, others are removed, and some have updated values.
What is an efficient way to update the collection in Redis without any downtime to the application using the collection? It is not required that the update be atomic.
Upvotes: 1
Views: 877
Reputation: 41658
Depending on how frequent the source updates are, you may want to keep the local copy of the existing Redis collection in memory to speed up step 1 and take load off the Redis server.
Upvotes: 2