com.google.code.ssm.spring
Class SSMCacheManager

java.lang.Object
  extended by com.google.code.ssm.spring.SSMCacheManager
All Implemented Interfaces:
InitializingBean, CacheManager
Direct Known Subclasses:
ExtendedSSMCacheManager

public class SSMCacheManager
extends Object
implements CacheManager, InitializingBean

CacheManager backed by a Simple Spring Memcached (SSM) Cache. Because using Spring Cache and CacheManager it is not possible to pass expiration time to backend cache, default expiration time has to be set in SSMCache.SSMCache(com.google.code.ssm.Cache, int, boolean). This expiration time is used for all store requests.

Since:
3.0.0
Author:
Jakub BiaƂek

Constructor Summary
SSMCacheManager()
           
 
Method Summary
protected  void addCache(Cache cache)
           
 void afterPropertiesSet()
           
 SSMCache getCache(String name)
           
 Collection<String> getCacheNames()
           
 Collection<SSMCache> getCaches()
           
protected  Collection<SSMCache> loadCaches()
          Load the caches for this cache manager.
 void setCaches(Collection<SSMCache> caches)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSMCacheManager

public SSMCacheManager()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface InitializingBean

addCache

protected final void addCache(Cache cache)

getCacheNames

public Collection<String> getCacheNames()
Specified by:
getCacheNames in interface CacheManager

getCache

public SSMCache getCache(String name)
Specified by:
getCache in interface CacheManager

loadCaches

protected Collection<SSMCache> loadCaches()
Load the caches for this cache manager. Occurs at startup. The returned collection must not be null.


getCaches

public Collection<SSMCache> getCaches()

setCaches

public void setCaches(Collection<SSMCache> caches)


Copyright © 2014. All rights reserved.