File tree 4 files changed +7
-0
lines changed
4 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
--no-private
2
2
--readme README.md
3
+ --markup-provider redcarpet
Original file line number Diff line number Diff line change 9
9
10
10
Lock and cache using redis!
11
11
12
+ <a href =" http://colinlanham.com/ " title =" Colin Lanham's Burden of Dreams (2000) " ><img src =" http://colinlanham.com/static/media/mangrove-swamp.jpg " /></a >
13
+
12
14
## Redlock locking
13
15
14
16
Based on [ antirez's Redlock algorithm] ( http://redis.io/topics/distlock ) .
Original file line number Diff line number Diff line change 6
6
require 'active_support'
7
7
require 'active_support/core_ext'
8
8
9
+ # Lock and cache methods using redis!
10
+ #
11
+ # I bet you're caching, but are you locking?
9
12
module LockAndCache
10
13
DEFAULT_LOCK_EXPIRES = 60 * 60 * 24 * 1 * 1000 # 1 day in milliseconds
11
14
DEFAULT_LOCK_SPIN = 0.1
Original file line number Diff line number Diff line change @@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
29
29
spec . add_development_dependency 'rspec'
30
30
spec . add_development_dependency 'thread'
31
31
spec . add_development_dependency 'yard'
32
+ spec . add_development_dependency 'redcarpet'
32
33
end
You can’t perform that action at this time.
0 commit comments