Skip to content

Commit 216087c

Browse files
committed
add some artwork
1 parent 1a5f4f3 commit 216087c

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.yardopts

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
--no-private
22
--readme README.md
3+
--markup-provider redcarpet

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
Lock and cache using redis!
1111

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+
1214
## Redlock locking
1315

1416
Based on [antirez's Redlock algorithm](http://redis.io/topics/distlock).

lib/lock_and_cache.rb

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
require 'active_support'
77
require 'active_support/core_ext'
88

9+
# Lock and cache methods using redis!
10+
#
11+
# I bet you're caching, but are you locking?
912
module LockAndCache
1013
DEFAULT_LOCK_EXPIRES = 60 * 60 * 24 * 1 * 1000 # 1 day in milliseconds
1114
DEFAULT_LOCK_SPIN = 0.1

lock_and_cache.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
2929
spec.add_development_dependency 'rspec'
3030
spec.add_development_dependency 'thread'
3131
spec.add_development_dependency 'yard'
32+
spec.add_development_dependency 'redcarpet'
3233
end

0 commit comments

Comments
 (0)