Rails cache records
<p>Is it a good idea to cache records with <code>Rails.cache</code>?</p>

<p>I want to cache last 15 records and show them.</p>

<p>For example 
in model</p>

<pre><code>    def last_fifteens
     last(15).map(&amp;:title)
    end

   def cached
     Rails.cache.write('last_fifteens',last_fifteens,expires_in: 1.hour)
   end

   def self.fetch_last_fifteens
     Rails.fetch('last_fifteens')
   end
</code></pre>

<p>and than on view </p>

<pre><code>Product.fetch_last_fifteens
</code></pre>

<p>or it's a bad approach?</p>