Skip to content

Support for GET option in SET command #4100

@mikewacker

Description

@mikewacker

https://www.javadoc.io/doc/redis.clients/jedis/latest/redis/clients/jedis/params/SetParams.html

There's no get() method for SetParams.


Here's a command to motivate this feature request:

SET some:key 1 NX GET

There's a couple reasons why client.getSet() isn't a viable workaround (where client is of type JedisPooled):

  • It doesn't support, e.g., EX or NX options.
  • It's a deprecated method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions