# File lib/helpers/cachetastic_helpers_active_record.rb, line 20
      def cache(key, expiry = 0)
        cache_class.get(key) do
          if block_given?
            res = yield
            cache_class.set(key, res, expiry)
          end
        end
      end