]> git.saurik.com Git - redis.git/commitdiff
RubyRedis: now sets are returned as arrays again, and not as Set objects
authorantirez <antirez@gmail.com>
Sat, 23 May 2009 09:33:21 +0000 (11:33 +0200)
committerantirez <antirez@gmail.com>
Sat, 23 May 2009 09:33:21 +0000 (11:33 +0200)
client-libraries/ruby_2/rubyredis.rb

index 38823206eac34372d2416508dab0bd8c460a8568..23d7b017e55afb1d59186a25a9db3b8e7f3efe3d 100644 (file)
@@ -28,7 +28,6 @@ class RedisClient
     }
 
     ConvertToBool = lambda{|r| r == 0 ? false : r}
-    ConvertToSet = lambda{|r| Set.new(r)}
 
     ReplyProcessor = {
         "exists" => ConvertToBool,
@@ -41,10 +40,6 @@ class RedisClient
         "del"=> ConvertToBool,
         "renamenx"=> ConvertToBool,
         "expire"=> ConvertToBool,
-        "smembers" => ConvertToSet,
-        "sinter" => ConvertToSet,
-        "sunion" => ConvertToSet,
-        "sdiff" => ConvertToSet,
         "keys" => lambda{|r| r.split(" ")},
         "info" => lambda{|r| 
             info = {}