lib/flipper/adapters/redis.rb in flipper-redis-0.7.0.beta1 vs lib/flipper/adapters/redis.rb in flipper-redis-0.7.0.beta4
- old
+ new
@@ -26,17 +26,17 @@
@client.smembers(FeaturesKey).to_set
end
# Public: Adds a feature to the set of known features.
def add(feature)
- @client.sadd FeaturesKey, feature.name
+ @client.sadd FeaturesKey, feature.key
true
end
# Public: Removes a feature from the set of known features.
def remove(feature)
@client.multi do
- @client.srem FeaturesKey, feature.name
+ @client.srem FeaturesKey, feature.key
@client.del feature.key
end
true
end