Commit 4d30232b authored by antirez's avatar antirez
Browse files

RubyRedis: now sets are returned as arrays again, and not as Set objects

parent e9f0b930
...@@ -28,7 +28,6 @@ class RedisClient ...@@ -28,7 +28,6 @@ class RedisClient
} }
ConvertToBool = lambda{|r| r == 0 ? false : r} ConvertToBool = lambda{|r| r == 0 ? false : r}
ConvertToSet = lambda{|r| Set.new(r)}
ReplyProcessor = { ReplyProcessor = {
"exists" => ConvertToBool, "exists" => ConvertToBool,
...@@ -41,10 +40,6 @@ class RedisClient ...@@ -41,10 +40,6 @@ class RedisClient
"del"=> ConvertToBool, "del"=> ConvertToBool,
"renamenx"=> ConvertToBool, "renamenx"=> ConvertToBool,
"expire"=> ConvertToBool, "expire"=> ConvertToBool,
"smembers" => ConvertToSet,
"sinter" => ConvertToSet,
"sunion" => ConvertToSet,
"sdiff" => ConvertToSet,
"keys" => lambda{|r| r.split(" ")}, "keys" => lambda{|r| r.split(" ")},
"info" => lambda{|r| "info" => lambda{|r|
info = {} info = {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment