This article shows about cacing data & session management with Ruby on Rails.
Add the following “redis-rails“ to your
bundle install on your terminal.
Add the following to your environment variable or
Configure to use Redis for cache store is as follows:
If you want to use Redis as a backend for sessions, you should also set:
If you want to skip to cache on TEST environment, please set NullStore:
- caching - is Rails.cache purged between tests? - Stack Overflow