-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Labels
Description
Every time when I am trying to add some more data to Redis memory or update the Redis graph, I get the unwanted result like double of previous data means previous_data + (previous_data + new_data) but I want to add only new data.
Some different solutions suggested by @Mec-iS
-
Build a secondary index using a Redis Set
-
use hashing on objects, and store only the first x characters
-
Some Redis commands have the "NX" suffix to ensure that a key or a member is created only if does
not exist
and
In general, this is an "upsert" problem that can be solved with transactions (see MULTI EXEC and WATCH commands in Redis)`