org.infinispan.client.hotrod.near.NearCache Maven / Gradle / Ivy
package org.infinispan.client.hotrod.near;
import java.util.Map;
import org.infinispan.client.hotrod.MetadataValue;
/**
* Near cache contract.
*
* @since 7.1
*/
public interface NearCache extends Iterable>> {
boolean putIfAbsent(K key, MetadataValue value);
boolean replace(K key, MetadataValue prevValue, MetadataValue 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, MetadataValue value);
MetadataValue get(K key);
void clear();
int size();
}