spring-framework / org.springframework.cache.jcache / JCacheCache

JCacheCache

open class JCacheCache : AbstractValueAdaptingCache

org.springframework.cache.Cache implementation on top of a javax.cache.Cache instance.

Note: This class has been updated for JCache 1.0, as of Spring 4.0.

Author
Juergen Hoeller

Author
Stephane Nicoll

Since
3.2

Constructors

<init>

JCacheCache(jcache: Cache<Any, Any>)
JCacheCache(jcache: Cache<Any, Any>, allowNullValues: Boolean)

Create an org.springframework.cache.jcache.JCacheCache instance.

Functions

clear

open fun clear(): Unit

evict

open fun evict(key: Any): Unit

get

open fun <T : Any> get(key: Any, valueLoader: Callable<T>): T

getName

fun getName(): String

getNativeCache

fun getNativeCache(): Cache<Any, Any>

put

open fun put(key: Any, value: Any): Unit

putIfAbsent

open fun putIfAbsent(key: Any, value: Any): ValueWrapper