Commits

Nikhil Marathe committed c8f793f

Added bulk commands and the loop to process them

Comments (0)

Files changed (1)

     "spop" "srandmember" "sunion" "sunionstore" "ttl" "type"
     "zrange" "zrevrange" "zcard" "zrangebyscore"))
 
+(constant 'bulk-commands
+  '("getset" "lpush" "lrem" "lset" "rpush" "sadd"
+    "set" "setnx" "sismember" "smove" "srem" "zadd"
+    "zrem" "zscore" "rpoplpush"))
+
 (define (make-inline-command command)
   (letex ((fname (sym command)) (cmd command))
         (define (fname r)
 (dolist (x redis:inline-commands)
   (redis:make-inline-command x))
 
+(dolist (x redis:bulk-commands)
+  (redis:make-bulk-command x))