Skip to content

Commit

Permalink
Checking in changes prior to tagging of version 0.11.
Browse files Browse the repository at this point in the history
Changelog diff is:

diff --git a/Changes b/Changes
index c1d3f46..ce4b158 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,9 @@ Revision history for Perl extension Redis-Setlock

 {{$NEXT}}

+0.11 2018-05-24T05:04:58Z
+    - Add blocking option to lock_guard (#5)
+
 0.10 2018-05-24T04:23:50Z
     - Change an algorithm to build key name for $WAIT_QUEUE. (#4)
  • Loading branch information
fujiwara committed May 24, 2018
1 parent d2ce0ac commit c9b62c4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Revision history for Perl extension Redis-Setlock

{{$NEXT}}

0.11 2018-05-24T05:04:58Z
- Add blocking option to lock_guard (#5)

0.10 2018-05-24T04:23:50Z
- Change an algorithm to build key name for $WAIT_QUEUE. (#4)

Expand Down
2 changes: 1 addition & 1 deletion META.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@
"web" : "https://github.com/fujiwara/Redis-Setlock"
}
},
"version" : "0.10",
"version" : "0.11",
"x_serialization_backend" : "JSON::PP version 2.27400_02"
}
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ Redis::Setlock is a like the setlock command using Redis.

Redis Server >= 2.6.12.

# METHODS

- **new**(%args)
- **lock\_guard**($redis, $lock\_name, $expires, $blocking)

Creates Guard::guard object when the lock got.

The lock is released at the guard is destroyed.

If $blocking is true, lock\_guard will be blocked until getting a lock. Otherwise returns immedetly when the lock is held by others .

# LICENSE

Copyright (C) FUJIWARA Shunichiro.
Expand Down
2 changes: 1 addition & 1 deletion lib/Redis/Setlock.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use Time::HiRes qw/ sleep /;
use Carp;
use Guard ();

our $VERSION = "0.10";
our $VERSION = "0.11";
our $DEFAULT_EXPIRES = 86400;
our $RETRY_INTERVAL = 0.5;
our $BLOCKING_KEY_POSTFIX = ":wait";
Expand Down

0 comments on commit c9b62c4

Please sign in to comment.