Skip to content

key expiry and ttl during the evaluation of lua scripts #886

Closed
@halaei

Description

@halaei

As far as I know, these behaviors are not documented:

  1. If a key with expiry (ttl) exists at the start of eval, it will not get expired during the evaluation of a script.
  2. During the evaluation of a lua script, ttl of a key can go down to zero. After that, it remains zero until the script terminates.
  3. To have logic based on the value of ttl can violate the concept of scripts as pure functions.

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