All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.client.hotrod.near.NearCache Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy