Skip to content

Instantly share code, notes, and snippets.

@benlieb
Created July 30, 2013 21:25
Show Gist options
  • Save benlieb/6117136 to your computer and use it in GitHub Desktop.
Save benlieb/6117136 to your computer and use it in GitHub Desktop.
>> Rails.cache.write('test', "foo", :expires_in => 1)
=> "foo"
>> #waiting 10 seconds
?> Rails.cache.read('test')
=> "foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment