Как я могу проверить функцию кэша рельсов

Это моя модель Tag, и я нене знаю, как я могу проверить функцию Rails.cache.

class Tag < ActiveRecord::Base
  class < self
    def all_cached
      Rails.cache.fetch("tags.all", :expires_in => 3.hours) do
        Tag.order('name asc').to_a
      end
    end
    def find_cached(id)
      Rails.cache.fetch("tags/#{id}", :expires_in => 3.hours) do
        Tag.find(id)
      end
    end
  end

  attr_accessible :name
  has_friendly_id :name, :use_slug => true, :approximate_ascii => true
  has_many :taggings #, :dependent => :destroy
  has_many :projects, :through => :taggings
end

Ответы на вопрос(1)

Ваш ответ на вопрос