redis-cmpdel
v1.0.1
Published
atomic compare-and-delete for Redis
Readme
This package is a Redis Lua command, to be used with redis-require.
Install it with npm install redis-cmpdel.
CMPDEL key value
Time complexity: O(1)
Removes the specified key if it holds the specified value. A key is ignored if it does not exist.
Return value
Integer reply: The number of keys that were removed.
