# HG changeset patch # User nanaya # Date 1643045944 -32400 # Node ID cf3ebc67dab18ca732bd24db930f97f67018a371 # Parent 782fece93768fbf332982c610a33eb6f1fc2dbed Use rails builtin redis cache diff -r 782fece93768 -r cf3ebc67dab1 Gemfile --- a/Gemfile Tue Jan 25 02:38:40 2022 +0900 +++ b/Gemfile Tue Jan 25 02:39:04 2022 +0900 @@ -6,9 +6,7 @@ gem "railties", rails_ver gem "actionpack", rails_ver -gem "redis-rails" gem "redis" -gem "redis-store" gem "twitter" gem "twitter-text" diff -r 782fece93768 -r cf3ebc67dab1 Gemfile.lock --- a/Gemfile.lock Tue Jan 25 02:38:40 2022 +0900 +++ b/Gemfile.lock Tue Jan 25 02:39:04 2022 +0900 @@ -94,22 +94,6 @@ zeitwerk (~> 2.5) rake (13.0.6) redis (4.5.1) - redis-actionpack (5.3.0) - actionpack (>= 5, < 8) - redis-rack (>= 2.1.0, < 3) - redis-store (>= 1.1.0, < 2) - redis-activesupport (5.3.0) - activesupport (>= 3, < 8) - redis-store (>= 1.3, < 2) - redis-rack (2.1.4) - rack (>= 2.0.8, < 3) - redis-store (>= 1.2, < 2) - redis-rails (5.0.2) - redis-actionpack (>= 5.0, < 6) - redis-activesupport (>= 5.0, < 6) - redis-store (>= 1.2, < 2) - redis-store (1.9.0) - redis (>= 4, < 5) simple_oauth (0.3.1) thor (1.2.1) thread_safe (0.3.6) @@ -148,8 +132,6 @@ puma railties (~> 7.0.1) redis - redis-rails - redis-store twitter twitter-text diff -r 782fece93768 -r cf3ebc67dab1 config/application.rb --- a/config/application.rb Tue Jan 25 02:38:40 2022 +0900 +++ b/config/application.rb Tue Jan 25 02:39:04 2022 +0900 @@ -43,7 +43,7 @@ config.session_store :disabled if $cfg[:redis_server] - config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours } + config.cache_store = :redis_cache_store, { url: "#{$cfg[:redis_server]}/cache_store" } end end end