Skip to content

Instantly share code, notes, and snippets.

@tansengming
Created January 21, 2009 08:46
Show Gist options
  • Save tansengming/49894 to your computer and use it in GitHub Desktop.
Save tansengming/49894 to your computer and use it in GitHub Desktop.
require 'activesupport';
cache = ActiveSupport::Cache::MemoryStore.new
cache.fetch(User.find(1)){User.find(1)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment