mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 00:50:50 +00:00
Redis-rb minor bool convertion fix
This commit is contained in:
parent
69664139b5
commit
6a97a74f5e
@ -20,13 +20,7 @@ class Redis
|
||||
"echo"=>true, "getset"=>true, "smove"=>true
|
||||
}
|
||||
|
||||
ConvertToBool = lambda do |r|
|
||||
case r
|
||||
when 0 then false
|
||||
when 1 then true
|
||||
else r
|
||||
end
|
||||
end
|
||||
ConvertToBool = lambda{|r| r == 0 ? false : r}
|
||||
|
||||
ReplyProcessor = {
|
||||
"exists" => ConvertToBool,
|
||||
|
Loading…
x
Reference in New Issue
Block a user