This gem includes two memcached stores.
ActiveSupport memcached store. This wraps the memcached gem into a ActiveSupport::Cache::Store, so it could be used inside Rails.
ActiveSupport cache store that adds snappy compression at the cost of making the incr, decr
operations unavailable.
Add this line to your application's Gemfile:
gem 'memcached_store'
And then execute:
$ bundle
Or install it yourself as:
$ gem install memcached_store
In your environment file:
# for memcached store
config.cache_store = :memcached_store,
# for snappy store
config.cache_store = :memcached_snappy_store,
Memcached::Rails.new(:servers => ['memcached1.foo.com', 'memcached2.foo.com'])
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request