smira-memcache-lock 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +2 -3
- data/VERSION +1 -1
- data/lib/memcache-lock.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -10,10 +10,9 @@ This is a pure extraction from Nick Kallen's {cache-money}[http://github.com/nka
|
|
10
10
|
|
11
11
|
= Usage
|
12
12
|
|
13
|
-
Instantiate the lock somewhere, like in an initializer if you're using rails. It
|
13
|
+
Instantiate the lock somewhere, like in an initializer if you're using rails. It will be using Rails.cache by default.
|
14
14
|
|
15
|
-
$
|
16
|
-
$lock = MemcacheLock.new($cache)
|
15
|
+
$lock = MemcacheLock.new()
|
17
16
|
|
18
17
|
Then, wherever you'd like to lock a key, use it like this:
|
19
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/memcache-lock.rb
CHANGED