cache your methods easilllllly
https://github.com/igorkasyanchuk/rails_cached_method a simple and elegant solution to cache your methods in Rails app.
Just call User.cached.find_by(name: 'John')
and it will store the result in the Rails.cache
.
It works with all methods.
Post a comment