Interface NearCache<K,V>

All Superinterfaces:
Iterable<org.infinispan.api.common.CacheEntry<K,V>>
All Known Implementing Classes:
NearCacheService

public interface NearCache<K,V> extends Iterable<org.infinispan.api.common.CacheEntry<K,V>>
Near cache contract.
Since:
14.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.infinispan.api.common.CacheEntry<K,V>
    get(K key)
     
    boolean
    putIfAbsent(K key, org.infinispan.api.common.CacheEntry<K,V> entry)
     
    boolean
    remove(K key)
     
    boolean
    remove(K key, org.infinispan.api.common.CacheEntry<K,V> entry)
     
    boolean
    replace(K key, org.infinispan.api.common.CacheEntry<K,V> prevValue, org.infinispan.api.common.CacheEntry<K,V> newValue)
     
    int
     

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • putIfAbsent

      boolean putIfAbsent(K key, org.infinispan.api.common.CacheEntry<K,V> entry)
    • replace

      boolean replace(K key, org.infinispan.api.common.CacheEntry<K,V> prevValue, org.infinispan.api.common.CacheEntry<K,V> newValue)
    • remove

      boolean remove(K key)
    • remove

      boolean remove(K key, org.infinispan.api.common.CacheEntry<K,V> entry)
    • get

      org.infinispan.api.common.CacheEntry<K,V> get(K key)
    • clear

      void clear()
    • size

      int size()