接口 CacheEntity<K,V>

类型参数:
K -
V -
所有已知实现类:
MemoryCacheEntity, RedisCacheEntity

public interface CacheEntity<K,V>
CacheEntity
  • 方法详细资料

    • init

      CacheEntity<K,V> init(String region, Properties properties)
      参数:
      region -
      properties -
      返回:
      entity
    • put

      void put(K key, V value, Long expiryInSeconds)
      参数:
      key -
      value -
      expiryInSeconds -
    • put

      List<V> put(K key, V value)
      参数:
      key -
      value -
      返回:
      values list
    • remove

      V remove(K key)
      参数:
      key -
      返回:
      value
    • contains

      boolean contains(K key)
      参数:
      key -
      返回:
      whether it is included
    • get

      V get(K key)
      参数:
      key -
      返回:
      value
    • clear

      List<V> clear(boolean recycling)
      参数:
      recycling -
      返回:
      values list