Skip to content

Automatic version management on key updates #1765

@VishalGujela

Description

@VishalGujela

I’m currently using this library for Redis operations and wanted to confirm whether it supports any mechanism for automatic version updates when a key’s data is modified.

For example, given a key like:
sr:running:sr:abc-function:data:/abc-Function:abc-Function/abcFunction-Single

I’d like Redis (or the client library) to automatically maintain and increment a version (or change counter) whenever the key’s value changes — without requiring me to manually update a separate version key each time.

Specifically, I’m looking to understand:

  1. Does the library natively support version tracking or automatic version incrementing on write operations?

  2. If not, is there a recommended approach or extension mechanism (e.g., hooks, middleware, or Lua scripting) to achieve this?

Any guidance or best practices would be appreciated.

Thanks & regards,
Vishall

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:questionIssue is actually a question.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions