Sha256: 2ebe52aff68457725bd2f64edbceee55fcd34db8e9702acb972cf2e709a9ea53
Contents?: true
Size: 760 Bytes
Versions: 1
Compression:
Stored size: 760 Bytes
Contents
# ClassCacher Generates a unique cache key for Rails classes ## Installation Add this line to your application's Gemfile: gem 'class_cacher' And then execute: $ bundle Or install it yourself as: $ gem install class_cacher ## Usage ```ruby class User < ActiveRecord::Base include ClassCacher end ``` then use it like this ```ruby User.unique_class_cache_key ``` or even better ```ruby User.cached_unique_class_cache_key ``` Shuold be used together with memcached and the dalli gem (or similar) ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
class_cacher-0.0.1 | README.md |