Skip to content

access to old value during notification of expiry #9354

@daniel-house

Description

@daniel-house

Currently, when a key expires during the active-expiry-cycle, notifications are sent at

redis/src/db.c

Line 1455 in 5705cec

notifyKeyspaceEvent(NOTIFY_EXPIRED,"expired",keyobj,db->id);

I am working on a module that needs access to the value of the key immediately before the key is expired. It would be helpful if the notifications were either delivered first or delivered with the old value. Delivery before the actual deletion seems superior because it costs nothing when the subscriber does not need the old value.

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