method
lookup_store
Register or
log in
to add new notes.
LacKac -
September 3, 2008
1 thank
Creating additional cache stores
This method can be used to create additional cache stores for your application:
# creates a new Memory Store mem_store = ActiveSupport::Cache.lookup_store # creates a new MemCache Store mem_cache_store = ActiveSupport::Cache.lookup_store :mem_cache_store, 'localhost:11212', :namespace => 'other_stuff'
The method takes the same arguments as the cache_store config. For more information about that go to ActionController::Caching.