Mercurial > rsstweet
changeset 226:cf3ebc67dab1
Use rails builtin redis cache
author | nanaya <me@nanaya.pro> |
---|---|
date | Tue, 25 Jan 2022 02:39:04 +0900 |
parents | 782fece93768 |
children | e8eb5caae9c1 |
files | Gemfile Gemfile.lock config/application.rb |
diffstat | 3 files changed, 1 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- 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"
--- 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
--- 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