public class ZombieCacheService<K,V> extends Object implements ICacheService<K,V>, IZombie
Constructor and Description |
---|
ZombieCacheService() |
Modifier and Type | Method and Description |
---|---|
void |
dispose(String cacheName)
Frees the specified cache.
|
ICacheElement<K,V> |
get(String cacheName,
K key)
Returns a cache bean from the specified cache; or null if the key does not exist.
|
Serializable |
get(String cacheName,
K key,
boolean container)
Logs the get to debug, but always balks.
|
Map<K,ICacheElement<K,V>> |
getMatching(String cacheName,
String pattern)
Returns an empty map.
|
Map<K,ICacheElement<K,V>> |
getMultiple(String cacheName,
Set<K> keys)
Returns an empty map.
|
void |
put(ICacheElement<K,V> item) |
void |
release()
Frees all caches.
|
void |
remove(String cacheName,
K key)
Removes the given key from the specified cache.
|
void |
removeAll(String cacheName)
Remove all keys from the specified cache.
|
void |
update(ICacheElement<K,V> item)
Does nothing.
|
public ZombieCacheService()
public void put(ICacheElement<K,V> item)
item
- public void update(ICacheElement<K,V> item)
update
in interface ICacheService<K,V>
item
- public ICacheElement<K,V> get(String cacheName, K key)
ICacheService
get
in interface ICacheService<K,V>
cacheName
- key
- public Map<K,ICacheElement<K,V>> getMultiple(String cacheName, Set<K> keys)
getMultiple
in interface ICacheService<K,V>
cacheName
- keys
- public Map<K,ICacheElement<K,V>> getMatching(String cacheName, String pattern)
getMatching
in interface ICacheService<K,V>
cacheName
- pattern
- public Serializable get(String cacheName, K key, boolean container)
cacheName
- key
- container
- public void remove(String cacheName, K key)
ICacheService
remove
in interface ICacheService<K,V>
cacheName
- key
- public void removeAll(String cacheName)
ICacheService
removeAll
in interface ICacheService<K,V>
cacheName
- public void dispose(String cacheName)
ICacheService
dispose
in interface ICacheService<K,V>
cacheName
- public void release()
release
in interface ICacheService<K,V>
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.