Skip to content

Request for Valkey to support sending key and value both on TTL expiration event notification #1621

@guptankita22

Description

@guptankita22

The problem/use-case that the feature addresses

We have the following use case: Every time a certain key expires, we need to get notified and do something, based on it's value. But when redis fires the expired event, the key was already removed from the db when we try to access it later on, which is expected of course. Sometimes it's useful to do something based on value once an expire notification is received, but at this point key (and value) is deleted and there is no way to get this expired value. Can we please have this functionality added in Valkey as additional feature?

Description of the feature

Valkey would send the value along with the key which is expired on TTL expired event notification

Alternatives you've considered

None

Additional information

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions