lib/redis/value.rb in redis-objects-0.6.1 vs lib/redis/value.rb in redis-objects-0.7.0

- old
+ new

@@ -8,13 +8,13 @@ require 'redis/helpers/core_commands' include Redis::Helpers::CoreCommands require 'redis/helpers/serialize' include Redis::Helpers::Serialize - attr_reader :key, :options, :redis + attr_reader :key, :options def initialize(key, *args) super(key, *args) - @redis.setnx(key, to_redis(@options[:default])) if @options[:default] + redis.setnx(key, to_redis(@options[:default])) if @options[:default] end def value=(val) if val.nil? delete