diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-23 16:10:41 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-23 16:10:41 -0800 |
commit | e44076f2c37427de1cecb6b4aab8edb049e74e67 (patch) | |
tree | 953e2a54dc25f20a1ed2f4a057e7473ed663b622 | |
parent | 49752e6ca5a7f5323ec10fc144bd62d3dad67781 (diff) | |
download | rails-e44076f2c37427de1cecb6b4aab8edb049e74e67.tar.gz rails-e44076f2c37427de1cecb6b4aab8edb049e74e67.tar.bz2 rails-e44076f2c37427de1cecb6b4aab8edb049e74e67.zip |
Autoload cache stores
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index e62cec6fcb..10281d60eb 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -3,6 +3,13 @@ require 'benchmark' module ActiveSupport # See ActiveSupport::Cache::Store for documentation. module Cache + autoload :FileStore, 'active_support/cache/file_store' + autoload :MemoryStore, 'active_support/cache/memory_store' + autoload :SynchronizedMemoryStore, 'active_support/cache/synchronized_memory_store' + autoload :DRbStore, 'active_support/cache/drb_store' + autoload :MemCacheStore, 'active_support/cache/mem_cache_store' + autoload :CompressedMemCacheStore, 'active_support/cache/compressed_mem_cache_store' + # Creates a new CacheStore object according to the given options. # # If no arguments are passed to this method, then a new @@ -215,9 +222,3 @@ module ActiveSupport end end end - -require 'active_support/cache/file_store' -require 'active_support/cache/memory_store' -require 'active_support/cache/drb_store' -require 'active_support/cache/mem_cache_store' -require 'active_support/cache/compressed_mem_cache_store' |