ruby on rails - require 'dalli' returns false in the console, although it is in the gemfile -



ruby on rails - require 'dalli' returns false in the console, although it is in the gemfile -

following https://devcenter.heroku.com/articles/memcachier#ruby

i added memcachier , dalli gems, , did bundle install

then ran console

and typed

require 'dalli'

and returns false

and can't tell why, in staging , production environment

if want test in irb

try:

gem install dalli gem install memcachier

and after require them:

require 'dalli' require 'memcachier'

if want test in app console, don't need require them that:

cache = dalli::client.new cache.set("foo", "bar")

ruby-on-rails ruby-on-rails-4 gem dalli memcachier

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -