Class DistributedCache<K,V>

java.lang.Object
com.landawn.abacus.cache.AbstractCache<K,V>
com.landawn.abacus.cache.DistributedCache<K,V>
Type Parameters:
K - the key type
V - the value type
All Implemented Interfaces:
Cache<K,V>, Closeable, AutoCloseable

public class DistributedCache<K,V> extends AbstractCache<K,V>
Since:
0.8
Author:
Haiyang Li
  • Method Details

    • gett

      public V gett(K k)
      Gets the t.
      Parameters:
      k -
      Returns:
    • put

      public boolean put(K k, V v, long liveTime, long maxIdleTime)
      Parameters:
      k -
      v -
      liveTime -
      maxIdleTime -
      Returns:
      true, if successful
    • remove

      public void remove(K k)
      Always return null.
      Parameters:
      k -
    • containsKey

      public boolean containsKey(K k)
      Parameters:
      k -
      Returns:
      true, if successful
    • keySet

      public Set<K> keySet() throws UnsupportedOperationException
      Returns:
      Throws:
      UnsupportedOperationException
    • size

      public int size() throws UnsupportedOperationException
      Returns:
      Throws:
      UnsupportedOperationException
    • clear

      public void clear()
      Clear.
    • close

      public void close()
      Close.
    • isClosed

      public boolean isClosed()
      Checks if is closed.
      Returns:
      true, if is closed