Permalink
Browse files

Added MemCacheStore to fragment caching #449 [Lucas Carlson]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@385 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 0d1e384 commit 18e945d8872517654e087e646890bf2f8f31bc03 @dhh dhh committed Jan 11, 2005
Showing with 6 additions and 0 deletions.
  1. +6 −0 actionpack/lib/action_controller/caching.rb
View
6 actionpack/lib/action_controller/caching.rb
@@ -243,6 +243,12 @@ def initialize(address = 'druby://localhost:9192')
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

0 comments on commit 18e945d

Please sign in to comment.