diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-11 00:30:53 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-11 00:30:53 +0000 |
commit | 18e945d8872517654e087e646890bf2f8f31bc03 (patch) | |
tree | 623f554eefd279771f948806571699a6fc9177fa /actionpack/lib | |
parent | 0d1e3846d6831adfc4d47f117bc0bca1259d9db4 (diff) | |
download | rails-18e945d8872517654e087e646890bf2f8f31bc03.tar.gz rails-18e945d8872517654e087e646890bf2f8f31bc03.tar.bz2 rails-18e945d8872517654e087e646890bf2f8f31bc03.zip |
Added MemCacheStore to fragment caching #449 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@385 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |