Skip to content

Commit

Permalink
credit where credit is due
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Adkisson committed Jun 20, 2010
1 parent 5cf8df6 commit 8b5b9bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rudis/structures/lock.rb
Expand Up @@ -28,6 +28,8 @@ def acquire(options={})
return false
end

# implements the SETNX locking algorithm from
# http://code.google.com/p/redis/wiki/SetnxCommand
def set(options={})
options.rmerge!(
:timeout => 30
Expand Down

0 comments on commit 8b5b9bc

Please sign in to comment.