org.infinispan.hotrod.configuration.NearCache Maven / Gradle / Ivy
package org.infinispan.hotrod.configuration;
import org.infinispan.api.common.CacheEntry;
/**
* Near cache contract.
*
* @since 14.0
*/
public interface NearCache extends Iterable> {
boolean putIfAbsent(K key, CacheEntry entry);
boolean replace(K key, CacheEntry prevValue, CacheEntry newValue);
boolean remove(K key);
// Removes a specific value from the near cache, note this method does not count towards and invalidation
boolean remove(K key, CacheEntry entry);
CacheEntry get(K key);
void clear();
int size();
}