mob-dalli 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source :rubygems
2
+
3
+ gemspec
4
+
5
+ gem 'rake'
6
+ gem 'em-synchrony', :platforms => :mri_19
7
+ gem 'em-spec', :platforms => :mri_19
8
+
9
+ group :test do
10
+ gem 'simplecov'
11
+ end
@@ -0,0 +1,226 @@
1
+ Dalli Changelog
2
+ =====================
3
+
4
+ HEAD
5
+ =======
6
+
7
+ - Extend DalliStore's :expires\_in when :race\_condition\_ttl is also used.
8
+ - Fix :expires\_in option not propogating from DalliStore to Client, GH-136
9
+ - Added support for native Rack session store. Until now, Dalli's
10
+ session store has required Rails. Now you can use Dalli to store
11
+ sessions for any Rack application.
12
+
13
+ require 'rack/session/dalli'
14
+ use Rack::Session::Dalli, :memcache_server => 'localhost:11211', :compression => true
15
+
16
+ - Add support for non-ascii keys when desired
17
+
18
+ 1.1.3
19
+ =======
20
+
21
+ - Support Rails's autoloading hack for loading sessions with objects
22
+ whose classes have not be required yet, GH-129
23
+ - Support Unix sockets for connectivity. Shows a 2x performance
24
+ increase but keep in mind they only work on localhost. (dfens)
25
+
26
+ 1.1.2
27
+ =======
28
+
29
+ - Fix incompatibility with latest Rack session API when destroying
30
+ sessions, thanks @twinge!
31
+
32
+ 1.1.1
33
+ =======
34
+
35
+ v1.1.0 was a bad release. Yanked.
36
+
37
+ 1.1.0
38
+ =======
39
+
40
+ - Remove support for Rails 2.3, add support for Rails 3.1
41
+ - Fix socket failure retry logic, now you can restart memcached and Dalli won't complain!
42
+ - Add support for fibered operation via em-synchrony (eliaslevy)
43
+ - Gracefully handle write timeouts, GH-99
44
+ - Only issue bug warning for unexpected StandardErrors, GH-102
45
+ - Add travis-ci build support (ryanlecompte)
46
+ - Gracefully handle errors in get_multi (michaelfairley)
47
+ - Misc fixes from crash2burn, fphilipe, igreg, raggi
48
+
49
+ 1.0.5
50
+ =======
51
+
52
+ - Fix socket failure retry logic, now you can restart memcached and Dalli won't complain!
53
+
54
+ 1.0.4
55
+ =======
56
+
57
+ - Handle non-ASCII key content in dalli_store
58
+ - Accept key array for read_multi in dalli_store
59
+ - Fix multithreaded race condition in creation of mutex
60
+
61
+ 1.0.3
62
+ =======
63
+
64
+ - Better handling of application marshalling errors
65
+ - Work around jruby IO#sysread compatibility issue
66
+
67
+
68
+ 1.0.2
69
+ =======
70
+
71
+ - Allow browser session cookies (blindsey)
72
+ - Compatibility fixes (mwynholds)
73
+ - Add backwards compatibility module for memcache-client, require 'dalli/memcache-client'. It makes
74
+ Dalli more compatible with memcache-client and prints out a warning any time you do something that
75
+ is no longer supported so you can fix your code.
76
+
77
+ 1.0.1
78
+ =======
79
+
80
+ - Explicitly handle application marshalling bugs, GH-56
81
+ - Add support for username/password as options, to allow multiple bucket access
82
+ from the same Ruby process, GH-52
83
+ - Add support for >1MB values with :value_max_bytes option, GH-54 (r-stu31)
84
+ - Add support for default TTL, :expires_in, in Rails 2.3. (Steven Novotny)
85
+ config.cache_store = :dalli_store, 'localhost:11211', {:expires_in => 4.hours}
86
+
87
+
88
+ 1.0.0
89
+ =======
90
+
91
+ Welcome gucki as a Dalli committer!
92
+
93
+ - Fix network and namespace issues in get_multi (gucki)
94
+ - Better handling of unmarshalling errors (mperham)
95
+
96
+ 0.11.2
97
+ =======
98
+
99
+ - Major reworking of socket error and failover handling (gucki)
100
+ - Add basic JRuby support (mperham)
101
+
102
+ 0.11.1
103
+ ======
104
+
105
+ - Minor fixes, doc updates.
106
+ - Add optional support for kgio sockets, gives a 10-15% performance boost.
107
+
108
+ 0.11.0
109
+ ======
110
+
111
+ Warning: this release changes how Dalli marshals data. I do not guarantee compatibility until 1.0 but I will increment the minor version every time a release breaks compatibility until 1.0.
112
+
113
+ IT IS HIGHLY RECOMMENDED YOU FLUSH YOUR CACHE BEFORE UPGRADING.
114
+
115
+ - multi() now works reentrantly.
116
+ - Added new Dalli::Client option for default TTLs, :expires_in, defaults to 0 (aka forever).
117
+ - Added new Dalli::Client option, :compression, to enable auto-compression of values.
118
+ - Refactor how Dalli stores data on the server. Values are now tagged
119
+ as "marshalled" or "compressed" so they can be automatically deserialized
120
+ without the client having to know how they were stored.
121
+
122
+ 0.10.1
123
+ ======
124
+
125
+ - Prefer server config from environment, fixes Heroku session store issues (thanks JoshMcKin)
126
+ - Better handling of non-ASCII values (size -> bytesize)
127
+ - Assert that keys are ASCII only
128
+
129
+ 0.10.0
130
+ ======
131
+
132
+ Warning: this release changed how Rails marshals data with Dalli. Unfortunately previous versions double marshalled values. It is possible that data stored with previous versions of Dalli will not work with this version.
133
+
134
+ IT IS HIGHLY RECOMMENDED YOU FLUSH YOUR CACHE BEFORE UPGRADING.
135
+
136
+ - Rework how the Rails cache store does value marshalling.
137
+ - Rework old server version detection to avoid a socket read hang.
138
+ - Refactor the Rails 2.3 :dalli\_store to be closer to :mem\_cache\_store.
139
+ - Better documentation for session store config (plukevdh)
140
+
141
+ 0.9.10
142
+ ----
143
+
144
+ - Better server retry logic (next2you)
145
+ - Rails 3.1 compatibility (gucki)
146
+
147
+
148
+ 0.9.9
149
+ ----
150
+
151
+ - Add support for *_multi operations for add, set, replace and delete. This implements
152
+ pipelined network operations; Dalli disables network replies so we're not limited by
153
+ latency, allowing for much higher throughput.
154
+
155
+ dc = Dalli::Client.new
156
+ dc.multi do
157
+ dc.set 'a', 1
158
+ dc.set 'b', 2
159
+ dc.set 'c', 3
160
+ dc.delete 'd'
161
+ end
162
+ - Minor fix to set the continuum sorted by value (kangster)
163
+ - Implement session store with Rails 2.3. Update docs.
164
+
165
+ 0.9.8
166
+ -----
167
+
168
+ - Implement namespace support
169
+ - Misc fixes
170
+
171
+
172
+ 0.9.7
173
+ -----
174
+
175
+ - Small fix for NewRelic integration.
176
+ - Detect and fail on older memcached servers (pre-1.4).
177
+
178
+ 0.9.6
179
+ -----
180
+
181
+ - Patches for Rails 3.0.1 integration.
182
+
183
+ 0.9.5
184
+ -----
185
+
186
+ - Major design change - raw support is back to maximize compatibility with Rails
187
+ and the increment/decrement operations. You can now pass :raw => true to most methods
188
+ to bypass (un)marshalling.
189
+ - Support symbols as keys (ddollar)
190
+ - Rails 2.3 bug fixes
191
+
192
+
193
+ 0.9.4
194
+ -----
195
+
196
+ - Dalli support now in rack-bug (http://github.com/brynary/rack-bug), give it a try!
197
+ - Namespace support for Rails 2.3 (bpardee)
198
+ - Bug fixes
199
+
200
+
201
+ 0.9.3
202
+ -----
203
+
204
+ - Rails 2.3 support (beanieboi)
205
+ - Rails SessionStore support
206
+ - Passenger integration
207
+ - memcache-client upgrade docs, see Upgrade.md
208
+
209
+
210
+ 0.9.2
211
+ ----
212
+
213
+ - Verify proper operation in Heroku.
214
+
215
+
216
+ 0.9.1
217
+ ----
218
+
219
+ - Add fetch and cas operations (mperham)
220
+ - Add incr and decr operations (mperham)
221
+ - Initial support for SASL authentication via the MEMCACHE_{USERNAME,PASSWORD} environment variables, needed for Heroku (mperham)
222
+
223
+ 0.9.0
224
+ -----
225
+
226
+ - Initial gem release.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Mike Perham
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,85 @@
1
+ Performance
2
+ ====================
3
+
4
+ Caching is all about performance, so I carefully track Dalli performance to ensure no regressions.
5
+ Times are from a Unibody MBP 2.4Ghz Core i5 running Snow Leopard.
6
+
7
+ You can optionally use kgio to give Dalli a small, 10-20% performance boost: gem install kgio.
8
+
9
+ memcache-client
10
+ ---------------
11
+
12
+ Testing 1.8.5 with ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]
13
+
14
+ user system total real
15
+ set:plain:memcache 2.070000 0.340000 2.410000 ( 2.611709)
16
+ set:ruby:memcache 1.990000 0.330000 2.320000 ( 2.869653)
17
+ get:plain:memcache 2.290000 0.360000 2.650000 ( 2.926425)
18
+ get:ruby:memcache 2.360000 0.350000 2.710000 ( 2.951604)
19
+ multiget:ruby:memcache 1.050000 0.120000 1.170000 ( 1.285787)
20
+ missing:ruby:memcache 1.990000 0.330000 2.320000 ( 2.567641)
21
+ mixed:ruby:memcache 4.390000 0.670000 5.060000 ( 5.721000)
22
+ incr:ruby:memcache 0.700000 0.120000 0.820000 ( 0.842896)
23
+
24
+ libmemcached
25
+ ------------
26
+
27
+ Testing 1.1.2 with ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]
28
+
29
+ user system total real
30
+ set:plain:libm 0.120000 0.220000 0.340000 ( 0.847521)
31
+ setq:plain:libm 0.030000 0.000000 0.030000 ( 0.126944)
32
+ set:ruby:libm 0.220000 0.250000 0.470000 ( 1.102789)
33
+ get:plain:libm 0.140000 0.230000 0.370000 ( 0.813998)
34
+ get:ruby:libm 0.210000 0.240000 0.450000 ( 1.025994)
35
+ multiget:ruby:libm 0.100000 0.080000 0.180000 ( 0.322217)
36
+ missing:ruby:libm 0.250000 0.240000 0.490000 ( 1.049972)
37
+ mixed:ruby:libm 0.400000 0.410000 0.810000 ( 2.172349)
38
+ mixedq:ruby:libm 0.410000 0.360000 0.770000 ( 1.516718)
39
+ incr:ruby:libm 0.080000 0.340000 0.420000 ( 1.685931)
40
+
41
+ dalli
42
+ -----
43
+
44
+ Using kgio socket IO
45
+ Testing 1.0.2 with ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]
46
+
47
+ user system total real
48
+ set:plain:dalli 0.850000 0.320000 1.170000 ( 1.691393)
49
+ setq:plain:dalli 0.500000 0.130000 0.630000 ( 0.651227)
50
+ set:ruby:dalli 0.900000 0.330000 1.230000 ( 1.865228)
51
+ get:plain:dalli 0.990000 0.390000 1.380000 ( 1.929994)
52
+ get:ruby:dalli 0.950000 0.370000 1.320000 ( 1.844251)
53
+ multiget:ruby:dalli 0.790000 0.300000 1.090000 ( 1.227073)
54
+ missing:ruby:dalli 0.810000 0.370000 1.180000 ( 1.627039)
55
+ mixed:ruby:dalli 1.850000 0.710000 2.560000 ( 3.555032)
56
+ mixedq:ruby:dalli 1.840000 0.610000 2.450000 ( 2.945982)
57
+ incr:ruby:dalli 0.310000 0.120000 0.430000 ( 0.616465)
58
+
59
+ Testing 1.0.2 with rubinius 1.3.0dev (1.8.7 382e813f xxxx-xx-xx JI) [x86_64-apple-darwin10.6.0]
60
+
61
+ user system total real
62
+ set:plain:dalli 2.800581 0.329360 3.129941 ( 5.186546)
63
+ setq:plain:dalli 1.064253 0.138044 1.202297 ( 1.280355)
64
+ set:ruby:dalli 2.220885 0.262619 2.483504 ( 2.778118)
65
+ get:plain:dalli 2.291344 0.280490 2.571834 ( 2.948004)
66
+ get:ruby:dalli 2.148900 0.274477 2.423377 ( 2.425808)
67
+ multiget:ruby:dalli 1.724193 0.249145 1.973338 ( 2.158673)
68
+ missing:ruby:dalli 1.881502 0.272610 2.154112 ( 2.208384)
69
+ mixed:ruby:dalli 4.292620 0.533768 4.826388 ( 4.830238)
70
+ mixedq:ruby:dalli 4.076032 0.501442 4.577474 ( 4.583800)
71
+ incr:ruby:dalli 0.691467 0.091475 0.782942 ( 0.931674)
72
+
73
+ Testing 1.0.2 with rubinius 1.2.0 (1.8.7 release 2010-12-21 JI) [x86_64-apple-darwin10.6.0]
74
+
75
+ user system total real
76
+ set:plain:dalli 6.586927 0.331545 6.918472 ( 4.628652)
77
+ setq:plain:dalli 0.930905 0.129008 1.059913 ( 1.016105)
78
+ set:ruby:dalli 2.702486 0.283004 2.985490 ( 2.690442)
79
+ get:plain:dalli 2.740202 0.291353 3.031555 ( 2.722746)
80
+ get:ruby:dalli 1.979379 0.282986 2.262365 ( 2.264118)
81
+ multiget:ruby:dalli 1.887086 0.249799 2.136885 ( 1.803230)
82
+ missing:ruby:dalli 1.882662 0.278019 2.160681 ( 2.113429)
83
+ mixed:ruby:dalli 3.969242 0.553361 4.522603 ( 4.524504)
84
+ mixedq:ruby:dalli 3.520755 0.475669 3.996424 ( 3.997405)
85
+ incr:ruby:dalli 0.849998 0.094012 0.944010 ( 0.884001)
@@ -0,0 +1,182 @@
1
+ Dalli
2
+ =========
3
+
4
+ Dalli is a high performance pure Ruby client for accessing memcached servers. It works with memcached 1.4+ only as it uses the newer binary protocol. It should be considered a replacement for the memcache-client gem. The API tries to be mostly compatible with memcache-client with the goal being to make it a drop-in replacement for Rails.
5
+
6
+ The name is a variant of Salvador Dali for his famous painting [The Persistence of Memory](http://en.wikipedia.org/wiki/The_Persistence_of_Memory).
7
+
8
+ ![Persistence of Memory](http://www.virtualdali.com/assets/paintings/31PersistenceOfMemory.jpg)
9
+
10
+ Dalli's development is sponsored by [Membase](http://www.membase.com/). Many thanks to them!
11
+
12
+
13
+ Design
14
+ ------------
15
+
16
+ I decided to write Dalli after maintaining memcache-client for the last two years for a few specific reasons:
17
+
18
+ 0. The code is mostly old and gross. The bulk of the code is a single 1000 line .rb file.
19
+ 1. It has a lot of options that are infrequently used which complicate the codebase.
20
+ 2. The implementation has no single point to attach monitoring hooks.
21
+ 3. Uses the old text protocol, which hurts raw performance.
22
+
23
+ So a few notes. Dalli:
24
+
25
+ 0. uses the exact same algorithm to choose a server so existing memcached clusters with TBs of data will work identically to memcache-client.
26
+ 1. is approximately 20% faster than memcache-client (which itself was heavily optimized) in Ruby 1.9.2.
27
+ 2. contains explicit "chokepoint" methods which handle all requests; these can be hooked into by monitoring tools (NewRelic, Rack::Bug, etc) to track memcached usage.
28
+ 3. comes with hooks to replace memcache-client in Rails.
29
+ 4. supports SASL for use in managed environments, e.g. Heroku.
30
+ 5. provides proper failover with recovery and adjustable timeouts
31
+ 6. has a backwards-compatibility mode for people migrating from memcache-client (see Upgrade.md).
32
+
33
+
34
+ Supported Ruby versions and implementations
35
+ ------------------------------------------------
36
+
37
+ Dalli is geared towards 1.9.2+ but known to work on
38
+
39
+ * Ruby 1.9.2
40
+ * Ruby 1.9.3
41
+ * Ruby 1.8.7
42
+ * Rubinius 2.0 Preview
43
+
44
+
45
+ Installation and Usage
46
+ ------------------------
47
+
48
+ Remember, Dalli **requires** memcached 1.4+. You can check the version with `memcached -h`. Please note that memcached that Mac OS X Snow Leopard ships with is 1.2.8 and
49
+ won't work. Install 1.4.x using Homebrew with
50
+
51
+ brew install memcached
52
+
53
+
54
+ You can verify your installation using this piece of code:
55
+
56
+ gem install dalli
57
+
58
+ require 'dalli'
59
+ dc = Dalli::Client.new('localhost:11211')
60
+ dc.set('abc', 123)
61
+ value = dc.get('abc')
62
+
63
+ The test suite requires memcached 1.4.3+ with SASL enabled (brew install memcached --enable-sasl ; mv /usr/bin/memcached /usr/bin/memcached.old). Currently only supports the PLAIN mechanism.
64
+
65
+ Dalli has no runtime dependencies and never will. You can optionally install the 'kgio' gem to
66
+ give Dalli a 10-20% performance boost.
67
+
68
+
69
+ Usage with Rails 3.x
70
+ ---------------------------
71
+
72
+ In your Gemfile:
73
+
74
+ gem 'dalli'
75
+
76
+ In `config/environments/production.rb`:
77
+
78
+ config.cache_store = :dalli_store
79
+
80
+ A more comprehensive example (note that we are setting a reasonable default for maximum cache entry lifetime (one day), enabling compression for large values, and namespacing all entries for this rails app. Remove the namespace if you have multiple apps which share cached values):
81
+
82
+ config.cache_store = :dalli_store, 'cache-1.example.com', 'cache-2.example.com',
83
+ { :namespace => NAME_OF_RAILS_APP, :expires_in => 1.day, :compression => true }
84
+
85
+ To use Dalli for Rails session storage, in `config/initializers/session_store.rb`:
86
+
87
+ require 'action_dispatch/middleware/session/dalli_store'
88
+ Rails.application.config.session_store :dalli_store, :memcache_server => ['host1', 'host2'], :namespace => 'sessions', :key => '_foundation_session', :expire_after => 30.minutes
89
+
90
+
91
+ Usage with Rails 2.3.x
92
+ ----------------------------
93
+
94
+ Dalli v1.1+ does not support Rails 2.3. Please use an earlier version: gem install dalli -v "~> 1.0.4"
95
+
96
+
97
+ Usage with Passenger
98
+ ------------------------
99
+
100
+ Put this at the bottom of `config/environment.rb`:
101
+
102
+ if defined?(PhusionPassenger)
103
+ PhusionPassenger.on_event(:starting_worker_process) do |forked|
104
+ # Reset Rails's object cache
105
+ # Only works with DalliStore
106
+ Rails.cache.reset if forked
107
+
108
+ # Reset Rails's session store
109
+ # If you know a cleaner way to find the session store instance, please let me know
110
+ ObjectSpace.each_object(ActionDispatch::Session::DalliStore) { |obj| obj.reset }
111
+ end
112
+ end
113
+
114
+
115
+ Configuration
116
+ ------------------------
117
+ Dalli::Client accepts the following options. All times are in seconds.
118
+
119
+ **expires_in**: Global default for key TTL. No default.
120
+
121
+ **failover**: Boolean, if true Dalli will failover to another server if the main server for a key is down.
122
+
123
+ **nonascii**: Boolean, if true Dalli will allow the use of non-ascii keys.
124
+
125
+ **compression**: Boolean, if true Dalli will gzip-compress values larger than 1K.
126
+
127
+ **socket_timeout**: Timeout for all socket operations (connect, read, write). Default is 0.5.
128
+
129
+ **socket_max_failures**: When a socket operation fails after socket_timeout, the same operation is retried. This is to not immediately mark a server down when there's a very slight network problem. Default is 2.
130
+
131
+ **socket_failure_delay**: Before retrying a socket operation, the process sleeps for this amount of time. Default is 0.01. Set to nil for no delay.
132
+
133
+ **down_retry_delay**: When a server has been marked down due to many failures, the server will be checked again for being alive only after this amount of time. Don't set this value to low, otherwise each request which tries the failed server might hang for the maximum **socket_timeout**. Default is 1 second.
134
+
135
+ **value_max_bytes**: The maximum size of a value in memcached. Defaults to 1MB, this can be increased with memcached's -I parameter. You must also configure Dalli to allow the larger size here.
136
+
137
+ **username**: The username to use for authenticating this client instance against a SASL-enabled memcached server. Heroku users should not need to use this normally.
138
+
139
+ **password**: The password to use for authenticating this client instance against a SASL-enabled memcached server. Heroku users should not need to use this normally.
140
+
141
+ **async**: Boolean, if true Dalli will assume its running inside the EventMachine reactor and use EM through the em-synchrony gem. Currently disables the socket_timeout option. Default is false.
142
+
143
+ Features and Changes
144
+ ------------------------
145
+
146
+ Dalli is **NOT** 100% API compatible with memcache-client. If you have code which uses the MemCache API directly, it will likely need small tweaks. Method parameters and return values changed slightly. See Upgrade.md for more detail.
147
+
148
+ By default, Dalli is thread-safe. Disable thread-safety at your own peril.
149
+
150
+ Multi-threaded use will fail if used with EventMachine.
151
+
152
+ Note that Dalli does not require ActiveSupport or Rails. You can safely use it in your own Ruby projects.
153
+
154
+
155
+ Helping Out
156
+ -------------
157
+
158
+ If you have a fix you wish to provide, please fork the code, fix in your local project and then send a pull request on github. Please ensure that you include a test which verifies your fix and update History.md with a one sentence description of your fix so you get credit as a contributor.
159
+
160
+
161
+ Thanks
162
+ ------------
163
+
164
+ Eric Wong - for help using his [kgio](http://unicorn.bogomips.org/kgio/index.html) library.
165
+
166
+ Brian Mitchell - for his remix-stash project which was helpful when implementing and testing the binary protocol support.
167
+
168
+ [Membase](http://membase.com) - for their project sponsorship
169
+
170
+ [Bootspring](http://bootspring.com) is my Ruby and Rails consulting company. We specialize in Ruby infrastructure, performance and scalability tuning for Rails applications. If you need help, please [contact us](mailto:info@bootspring.com) today.
171
+
172
+
173
+ Author
174
+ ----------
175
+
176
+ Mike Perham, mperham@gmail.com, [mikeperham.com](http://mikeperham.com), [@mperham](http://twitter.com/mperham) If you like and use this project, please give me a recommendation at [WWR](http://workingwithrails.com/person/10797-mike-perham). Happy caching!
177
+
178
+
179
+ Copyright
180
+ -----------
181
+
182
+ Copyright (c) 2010 Mike Perham. See LICENSE for details.