Implement GET option of SET command by martinekvili · Pull Request #2003 · StackExchange/StackExchange.Redis

Redis 6.2.0 has deprecated the GETSET command and in turn added the GET option to the SET command.

Note: I am not 100% happy with the StringSetAndGet method name. However, I am quite torn, as it would be nice to call it StringGetSet to better show the intent and the deprecation of the old method. On the other hand, I quite like how this driver follows the names of the underlying Redis commands quite closely. The current name tries to follow that convention.