mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +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
|
"echo"=>true, "getset"=>true, "smove"=>true
|
||||||
}
|
}
|
||||||
|
|
||||||
ConvertToBool = lambda do |r|
|
ConvertToBool = lambda{|r| r == 0 ? false : r}
|
||||||
case r
|
|
||||||
when 0 then false
|
|
||||||
when 1 then true
|
|
||||||
else r
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
ReplyProcessor = {
|
ReplyProcessor = {
|
||||||
"exists" => ConvertToBool,
|
"exists" => ConvertToBool,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user