When I set a boolean value (true) to a key in Redis, the value is coerced to a string ("true"). With memcached, I get back what I put in. But with Redis it seems to stringify everything. I can't find any docs on how to fix this boolean issue. No special boolean_set methods or boolean options.
I'm using Ruby.
Example follows.
Set up:
require 'redis'
@redis = Redis.new
running in irb:
irb(main):034:0> bool = true
=> true
irb(main):035:0> bool
=> true
irb(main):036:0> @redis.set("example", bool)
=> "OK"
irb(main):037:0> @redis.get("example")
=> "true"
irb(main):038:0> @redis.get("example") == bool
=> false