Monday, 15 July 2013

Redis compound commands or command piping -


Staying around for the past few days. Whether a compound command can be run like the following:

  MGT Zareng rank 0 1   

I have not received a definitive answer from the docs, or the test From:

  Redis 127.0.0.1:6379> ZRANGE rank 0 1 1) "One" 2) "Two" redis 127.0.0.1:6379> MGT One to 1) "1" 2) "2" radis 127.0.0.1:6379> MGET Zerange Rank 0 1 1) (zero) 2) (zero) 3) (zero) 4) (zero)    

Built in Radis, the LU scripting support should allow you to effectively archive commands together. See . Not exactly what you are looking for but maybe it will be enough.

A simple example:

  redis> Set foo bar is fine redis & gt; Set Bar Barrel OK & gt; Evil "returns redis.call ('get', redis.call ('get', 'foo'))" 0 "baz"    

No comments:

Post a Comment