lib/redis/lock.rb in redis-objects-1.2.1 vs lib/redis/lock.rb in redis-objects-1.3.0

- old
+ new

@@ -24,9 +24,13 @@ def clear redis.del(key) end alias_method :delete, :clear + def value + nil + end + # Get the lock and execute the code block. Any other code that needs the lock # (on any server) will spin waiting for the lock up to the :timeout # that was specified when the lock was defined. def lock(&block) expiration = nil