From 18e945d8872517654e087e646890bf2f8f31bc03 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 11 Jan 2005 00:30:53 +0000 Subject: Added MemCacheStore to fragment caching #449 [Lucas Carlson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@385 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/caching.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index 87d0558284..ee606ce13d 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -243,6 +243,12 @@ module ActionController #:nodoc: end end + class MemCacheStore < MemoryStore + def initialize(address = 'localhost') + @data = MemCache.new(address) + end + end + class FileStore def initialize(cache_path) @cache_path = cache_path -- cgit v1.2.3