search for: redis_store

Displaying 1 result from an estimated 1 matches for "redis_store".

Did you mean: 2eds_store
2011 Apr 27
3
Can't configure cach_store in an initializer
I''m trying to use redis-store as my cache_store. I also have an app_confirg.rb initalizer which loads a yaml file for config settings. In my redis.rb initializer I have: MyApp::Application.config.cache_store = :redis_store, APP_CONFIG[''redis''] However, this doesn''t appear to work. If I do Rails.cache in my rails console I can clearly see it''s using the ActiveSupport.Cache.FileStore as the cache store instead of redis. However, if I add the config in my application.rb file it works...