GETSET is considered a deprecated command in Redis 6.2.0 with the recommended replacement command being SET with the GET argument provided.
This preferred method is implemented in go-redis via the SetArgs function, which takes a SetArgs instance with the Get field set to true. But redismock does not currently support mocking the SetArgs function.
This PR implements an ExpectSetArgs functionality, allowing code written using it to be mocked.
GETSET
is considered a deprecated command in Redis 6.2.0 with the recommended replacement command beingSET
with theGET
argument provided.This preferred method is implemented in go-redis via the
SetArgs
function, which takes aSetArgs
instance with theGet
field set totrue
. But redismock does not currently support mocking theSetArgs
function.This PR implements an
ExpectSetArgs
functionality, allowing code written using it to be mocked.