lib/flipper/adapters/redis.rb in flipper-redis-0.2.0 vs lib/flipper/adapters/redis.rb in flipper-redis-0.3.0
- old
+ new
@@ -7,30 +7,30 @@
def initialize(client)
@client = client
end
def read(key)
- @client.get key
+ @client.get key.to_s
end
def write(key, value)
- @client.set key, value
+ @client.set key.to_s, value.to_s
end
def delete(key)
- @client.del key
+ @client.del key.to_s
end
def set_add(key, value)
- @client.sadd(key, value)
+ @client.sadd(key.to_s, value.to_s)
end
def set_delete(key, value)
- @client.srem(key, value)
+ @client.srem(key.to_s, value.to_s)
end
def set_members(key)
- @client.smembers(key).map { |member| member.to_i }.to_set
+ @client.smembers(key.to_s).to_set
end
end
end
end