com.google.code.ssm.spring
Class SSMCache
java.lang.Object
com.google.code.ssm.spring.SSMCache
- All Implemented Interfaces:
- org.springframework.cache.Cache
public class SSMCache
- extends Object
- implements org.springframework.cache.Cache
Wrapper around Cache that allow to set default expiration time used in all
put(Object, Object) (
Cache.set(String, int, Object, com.google.code.ssm.api.format.SerializationType))
requests.
- Since:
- 3.0.0
- Author:
- Jakub BiaĆek
| Nested classes/interfaces inherited from interface org.springframework.cache.Cache |
org.springframework.cache.Cache.ValueWrapper |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSMCache
public SSMCache(Cache cache,
int expiration,
boolean allowClear)
SSMCache
public SSMCache(Cache cache,
int expiration)
SSMCache
public SSMCache(SSMCache ssmCache,
int expiration)
getName
public String getName()
- Specified by:
getName in interface org.springframework.cache.Cache
getNativeCache
public Object getNativeCache()
- Specified by:
getNativeCache in interface org.springframework.cache.Cache
get
public org.springframework.cache.Cache.ValueWrapper get(Object key)
- Specified by:
get in interface org.springframework.cache.Cache
put
public void put(Object key,
Object value)
- Specified by:
put in interface org.springframework.cache.Cache
evict
public void evict(Object key)
- Specified by:
evict in interface org.springframework.cache.Cache
clear
public void clear()
- Specified by:
clear in interface org.springframework.cache.Cache
Copyright © 2013. All Rights Reserved.