info.magnolia.module.cache
Interface CacheFactory

All Known Implementing Classes:
EhCacheFactory

public interface CacheFactory

Most caching libraries allow the creation of different caches ("zones") in a single application/vm. This interface wraps this functionality and hides the configuration mechanisms of the library in use.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Method Summary
 Cache getCache(String name)
          Retrieves a named cache.
 void start()
           
 void stop()
           
 

Method Detail

getCache

Cache getCache(String name)
Retrieves a named cache. Implementations should take care of initializing the cache properly on first call or whenever necessary.


start

void start()

stop

void stop()


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.