Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An example of fragment caching implementation for Rails
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Readme
tokyo_cabinet_cache.rb

Readme

Include this module in your application controller file to use fragment caching with Rails.

In your views:

    <p>Test not cached</p>

    <%= tokyo_cache "simple" do %>
      <p>Test cached <%= 1 + 7 %></p>
    <% end %>
Something went wrong with that request. Please try again.