Should dalli and redis gems be standard issue (part of "rails new") since they are "require"d?

18 views
Skip to first unread message

Al

unread,
Aug 11, 2019, 2:01:36 PM8/11/19
to Ruby on Rails: Core
Should dalli and redis gems be standard issue (part of "rails new") since they are "require"d?
  • activesupport-5.2.3/lib/active_support/cache/redis_cache_store.rb: require "redis"

  • actionpack-5.2.3/lib/action_dispatch/middleware/session/mem_cache_store.rb: require "rack/session/dalli"

  • activesupport-5.2.3/lib/active_support/cache/mem_cache_store.rb: require "dalli"
Also see error message elsewhere in the code
  • actionpack-5.2.3/lib/action_dispatch/middleware/session/mem_cache_store.rb: $stderr.puts "You don't have dalli installed in your application. Please add it to your Gemfile and run bundle install"
  • activesupport-5.2.3/lib/active_support/cache/mem_cache_store.rb: $stderr.puts "You don't have dalli installed in your application. Please add it to your Gemfile and run bundle install"

Thanks,
Al

Rafael França

unread,
Aug 11, 2019, 2:06:29 PM8/11/19
to rubyonra...@googlegroups.com
No. They should not. They are only required if you use one of those cache stores. They are not used by default when you generate a new Rails application.

Sent from my iPhone

On Aug 11, 2019, at 14:04, Al <jas...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-core/339b3e0e-8978-472c-b576-d0e6d8a92f50%40googlegroups.com.

Al

unread,
Aug 11, 2019, 3:53:30 PM8/11/19
to Ruby on Rails: Core
After thinking about this, I changed my mind and was going to delete the question. 
THANKS for the thoughtful response.


On Sunday, August 11, 2019 at 2:06:29 PM UTC-4, Rafael França wrote:
No. They should not. They are only required if you use one of those cache stores. They are not used by default when you generate a new Rails application.

Sent from my iPhone

On Aug 11, 2019, at 14:04, Al <jas...@gmail.com> wrote:


Should dalli and redis gems be standard issue (part of "rails new") since they are "require"d?
  • activesupport-5.2.3/lib/active_support/cache/redis_cache_store.rb: require "redis"

  • actionpack-5.2.3/lib/action_dispatch/middleware/session/mem_cache_store.rb: require "rack/session/dalli"

  • activesupport-5.2.3/lib/active_support/cache/mem_cache_store.rb: require "dalli"
Also see error message elsewhere in the code
  • actionpack-5.2.3/lib/action_dispatch/middleware/session/mem_cache_store.rb: $stderr.puts "You don't have dalli installed in your application. Please add it to your Gemfile and run bundle install"
  • activesupport-5.2.3/lib/active_support/cache/mem_cache_store.rb: $stderr.puts "You don't have dalli installed in your application. Please add it to your Gemfile and run bundle install"

Thanks,
Al

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonra...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages