org.infinispan.spring.provider
Class SpringCache

java.lang.Object
  extended by org.infinispan.spring.provider.SpringCache
All Implemented Interfaces:
org.springframework.cache.Cache

public class SpringCache
extends Object
implements org.springframework.cache.Cache

A Cache implementation that delegates to a org.infinispan.Cache instance supplied at construction time.

Author:
Olaf Bergner, Marius Bogoevici

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.cache.Cache
org.springframework.cache.Cache.ValueWrapper
 
Constructor Summary
SpringCache(BasicCache<Object,Object> nativeCache)
           
 
Method Summary
 void clear()
           
 void evict(Object key)
           
 org.springframework.cache.Cache.ValueWrapper get(Object key)
           
 String getName()
           
 BasicCache<?,?> getNativeCache()
           
 void put(Object key, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpringCache

public SpringCache(BasicCache<Object,Object> nativeCache)
Parameters:
nativeCache -
Method Detail

getName

public String getName()
Specified by:
getName in interface org.springframework.cache.Cache
See Also:
Cache.getName()

getNativeCache

public BasicCache<?,?> getNativeCache()
Specified by:
getNativeCache in interface org.springframework.cache.Cache
See Also:
Cache.getNativeCache()

get

public org.springframework.cache.Cache.ValueWrapper get(Object key)
Specified by:
get in interface org.springframework.cache.Cache
See Also:
Cache.get(java.lang.Object)

put

public void put(Object key,
                Object value)
Specified by:
put in interface org.springframework.cache.Cache
See Also:
Cache.put(java.lang.Object, java.lang.Object)

evict

public void evict(Object key)
Specified by:
evict in interface org.springframework.cache.Cache
See Also:
Cache.evict(java.lang.Object)

clear

public void clear()
Specified by:
clear in interface org.springframework.cache.Cache
See Also:
Cache.clear()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.