diff 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
line wrap: on
line diff
--- a/config/application.rb	Sun Oct 30 04:27:12 2016 +0900
+++ b/config/application.rb	Wed Nov 09 07:35:03 2016 +0900
@@ -27,8 +27,8 @@
     config.secret_key_base = "herp a derp"
     config.session_store :disabled
 
-    if $cfg[:memcached_servers]
-      config.cache_store = :mem_cache_store, $cfg[:memcached_servers], { :namespace => "rsstweet" }
+    if $cfg[:redis_server]
+      config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours }
     end
   end
 end