method
lookup_store
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
Register or
log in
to add new notes.
LacKac -
September 3, 2008
![Default_avatar_30](https://www.gravatar.com/avatar/d3ab365ec2c78d27e5a68e912848e85f?default=http://apidock.com/images/default_avatar_30.png&size=30)
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.