Skip to content

Instantly share code, notes, and snippets.

@drogus
Created May 12, 2009 13:40
Show Gist options
  • Save drogus/110488 to your computer and use it in GitHub Desktop.
Save drogus/110488 to your computer and use it in GitHub Desktop.
class ActiveSupport::Cache::MyMemCacheStore < ActiveSupport::Cache::MemCacheStore
def initialize(*addresses)
super(*addresses)
extend ActiveSupport::Cache::Strategy::LocalCache
end
def read(key, options = nil)
super.untaint
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment