Redis-Extend is a collection of non-native, atomic redis commands that perform specific tasks. If you know lua or are interested in redis, please consider contributing an interesting and useful command - or improve the existing.
Simply load the command from scripts/ according to 'command.lua'. The commands are described below. src/ contains the latest redis scripting branch from http://redis.io.
For each pair (keyX,valueX), sets keyX to the maximum between its value and valueX. Returns a multi bulk with the values of key1 ... keyN after the call.
Remove the same field from several hashes, get the number of values actually removed.
Varadic HLEN.
Set the same field in several hashes, get the number of fields actually created (not updated).
Perform 'operation' (eg DEL) on all keys matching 'pattern'
Determine if the set at 'key2' is a subset of the set at 'key1'
The cardinality of the set resulting from the 'operation' (smembers/sinter/sunion) between the sets at 'key1' ... 'keyN'.
A random subset of maximum size 'count' from the 'operation' (smembers/sinter/sunion) between the set at 'key1' and all the sets at 'key2' ... 'keyN'.
Store a random subset of maximum size 'count' from the 'operation' (smembers/sinter/sunion) between the set at 'key1' and all the sets at 'key2' ... 'keyN' at a key 'destination'