Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Configuration Memcached

ZeroC0D3 Team edited this page Jan 9, 2018 · 1 revision

Configuration for Memcached

Install Dependencies

  • Add library to Gemfile
gem 'dalli'
gem 'identity_cache'
  • Run bundle
bundle install

Configuration environment

  • Remove or comment old memcached configuration
config.cache_store = :mem_cache_store
  • Development / Staging / Production
# Files: config/environments/development.rb
# Files: config/environments/production.rb
# Files: config/environments/staging.rb

config.cache_store = :dalli_store, '127.0.0.1:11211:2', { :namespace => '[YOUR_APP_NAME]', :expires_in => 1.day, :compress => true }
Clone this wiki locally