public class

ConcurrentCache

extends AbstractDelegatingCache<K, V>
java.lang.Object
   ↳ org.springframework.cache.support.AbstractDelegatingCache<K, V>
     ↳ org.springframework.cache.concurrent.ConcurrentCache<K, V>

Class Overview

Simple Cache implementation based on the JDK 1.5+ java.util.concurrent package. Useful for testing or simple caching scenarios.

Summary

[Expand]
Inherited Fields
From class org.springframework.cache.support.AbstractDelegatingCache
Public Constructors
ConcurrentCache()
ConcurrentCache(String name)
ConcurrentCache(ConcurrentMap<K, V> delegate, String name)
Public Methods
String getName()
ConcurrentMap<K, V> getNativeCache()
V putIfAbsent(K key, V value)
boolean remove(Object key, Object value)
boolean replace(K key, V oldValue, V newValue)
V replace(K key, V value)
[Expand]
Inherited Methods
From class org.springframework.cache.support.AbstractDelegatingCache
From class java.lang.Object
From interface org.springframework.cache.Cache

Public Constructors

public ConcurrentCache ()

public ConcurrentCache (String name)

public ConcurrentCache (ConcurrentMap<K, V> delegate, String name)

Public Methods

public String getName ()

public ConcurrentMap<K, V> getNativeCache ()

public V putIfAbsent (K key, V value)

public boolean remove (Object key, Object value)

public boolean replace (K key, V oldValue, V newValue)

public V replace (K key, V value)