lib/split/persistence/redis_adapter.rb in split-1.4.5 vs lib/split/persistence/redis_adapter.rb in split-1.5.0

- old
+ new

@@ -25,9 +25,11 @@ Split.redis.hget(redis_key, field) end def []=(field, value) Split.redis.hset(redis_key, field, value) + expire_seconds = self.class.config[:expire_seconds] + Split.redis.expire(redis_key, expire_seconds) if expire_seconds end def delete(field) Split.redis.hdel(redis_key, field) end