Skip to content

Instantly share code, notes, and snippets.

@quamen
Created July 18, 2011 06:14
Show Gist options
  • Select an option

  • Save quamen/1088660 to your computer and use it in GitHub Desktop.

Select an option

Save quamen/1088660 to your computer and use it in GitHub Desktop.
An empty Active Support Cache store. lib/cache/no_store.rb
module ActiveSupport
module Cache
class NoStore < Store
def read_entry(name, options)
return nil
end
def write_entry(name, value, options)
end
def delete_entry(name, options)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment