Skip to content

Feature new command GETEX #2762

@WhiteTrashLord

Description

@WhiteTrashLord

I miss a command which gets me a value and also extends the TTL with one call. I think that could save a lot of requests in some use cases.

Example:

1 redis> GETEX nonexisting 100
(nil)

2 redis> SET mykey "Hello"
OK

3 redis> GETEX mykey 100

"Hello"

3 redis would also run this command: EXPIRE mykey 100

Is there a chance that you might add this command?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions