alicebob / miniredis

Pure Go Redis server for Go unittests
MIT License
3.09k stars 215 forks source link

support SET NX GET special case #316

Closed alicebob closed 1 year ago

alicebob commented 1 year ago

That should fix #315.

Starting with Redis version 7.0.0: Allowed the NX and GET options to be used together.

(I see how the case applies to 'SET NX GET', but I don't understand see how it changes the reply for 'SET XX GET', since that will also be nil in the "fail" case. Doesn't matter much.)