Skip to content

[BUG] HEXPIRE will delete fields even if condition is not met #3021

Description

@cjx-zar

Describe the bug

I'm not sure if this is how it's designed, but I feel that some users might rely on a condition (like gt) to filter hexpire for an expired time. However, in the current implementation, if an expired time is used, the condition is ignored, and it directly becomes the effect of the hdel command, which seems inconsistent with the implementation of the expire command too.

To reproduce

hsetex myhash ex 1000 fields 1 f1 v1
hexpireat myhash 1754846600 gt fields 1 f1

Expected behavior

return 0(condition has not been met) and do not hdel f1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions