Skip to content

Add new data in Redis memory #24

@sandeepsajan0

Description

@sandeepsajan0

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)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions