comparison config/application.rb @ 110:f76d44baa3dc

Test adding redis support
author nanaya <me@myconan.net>
date Wed, 09 Nov 2016 07:35:03 +0900
parents d5a0d66ee457
children c57e51af4692
comparison
equal deleted inserted replaced
109:e74c23d5c42e 110:f76d44baa3dc
25 25
26 # this isn't actually used but railties checks this variable during boot. 26 # this isn't actually used but railties checks this variable during boot.
27 config.secret_key_base = "herp a derp" 27 config.secret_key_base = "herp a derp"
28 config.session_store :disabled 28 config.session_store :disabled
29 29
30 if $cfg[:memcached_servers] 30 if $cfg[:redis_server]
31 config.cache_store = :mem_cache_store, $cfg[:memcached_servers], { :namespace => "rsstweet" } 31 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours }
32 end 32 end
33 end 33 end
34 end 34 end