stipsan / ioredis-mock

Emulates ioredis by performing all operations in-memory.
MIT License
336 stars 124 forks source link

fix(set): support optional "GET" parameter #1264

Closed the5thbeatle closed 1 year ago

the5thbeatle commented 1 year ago

Set allows for an optional parameter "GET", which causes Redis to return the previous value of the key if it existed. This adds a conditional return value to the set command, which is "OK" if "GET" was not provided in the options and is key's previous value otherwise.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 8.4.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: