Skip to content

Commit

Permalink
RubyRedis: now sets are returned as arrays again, and not as Set objects
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed May 23, 2009
1 parent e9f0b93 commit 4d30232
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions client-libraries/ruby_2/rubyredis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class RedisClient
}

ConvertToBool = lambda{|r| r == 0 ? false : r}
ConvertToSet = lambda{|r| Set.new(r)}

ReplyProcessor = {
"exists" => ConvertToBool,
Expand All @@ -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 = {}
Expand Down

0 comments on commit 4d30232

Please sign in to comment.