ARTICLE AD BOX
I want to increment the score if the key exists by some value. The default sorted set increment function in StackExchange.Redis and in Redis in general adds the value with the score of the increment value if it doesn't exist.
Is there a preferred or best practice way to implement logic similar to:
ZADD testSet XX INCR 5 item1This seems something would be common enough to want to increment only if the key exists.
I know I can do the check if exists and if so increment via a Lua script, but that seems like overkill when Redis has the built in support for the XX flag.
