}
ConvertToBool = lambda{|r| r == 0 ? false : r}
- ConvertToSet = lambda{|r| Set.new(r)}
ReplyProcessor = {
"exists" => ConvertToBool,
"del"=> ConvertToBool,
"renamenx"=> ConvertToBool,
"expire"=> ConvertToBool,
- "smembers" => ConvertToSet,
- "sinter" => ConvertToSet,
- "sunion" => ConvertToSet,
- "sdiff" => ConvertToSet,
"keys" => lambda{|r| r.split(" ")},
"info" => lambda{|r|
info = {}