类 RedisCacheEntity<K,V>

java.lang.Object
com.publiccms.common.redis.RedisCacheEntity<K,V>
类型参数:
K -
V -
所有已实现的接口:
CacheEntity<K,V>, Serializable

public class RedisCacheEntity<K,V> extends Object implements CacheEntity<K,V>, Serializable
RedisCacheEntity
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • jedisPool

      private redis.clients.jedis.JedisPool jedisPool
    • region

      private String region
    • stringSerializer

      private static final StringSerializer stringSerializer
    • valueSerializer

      private final Serializer<V> valueSerializer
    • CACHE_PREFIX

      public static final String CACHE_PREFIX
      另请参阅:
  • 构造器详细资料

    • RedisCacheEntity

      public RedisCacheEntity()
  • 方法详细资料

    • put

      public List<V> put(K key, V value)
      指定者:
      put 在接口中 CacheEntity<K,V>
      参数:
      key -
      value -
      返回:
      values list
    • put

      public void put(K key, V value, Long expiryInSeconds)
      指定者:
      put 在接口中 CacheEntity<K,V>
      参数:
      key -
      value -
      expiryInSeconds -
    • get

      public V get(K key)
      指定者:
      get 在接口中 CacheEntity<K,V>
      参数:
      key -
      返回:
      value
    • remove

      public V remove(K key)
      指定者:
      remove 在接口中 CacheEntity<K,V>
      参数:
      key -
      返回:
      value
    • clear

      public List<V> clear(boolean recycling)
      指定者:
      clear 在接口中 CacheEntity<K,V>
      参数:
      recycling -
      返回:
      values list
    • contains

      public boolean contains(K key)
      指定者:
      contains 在接口中 CacheEntity<K,V>
      参数:
      key -
      返回:
      whether it is included
    • getKey

      private byte[] getKey(K key)
    • init

      public RedisCacheEntity<K,V> init(String region, Properties properties)
      指定者:
      init 在接口中 CacheEntity<K,V>
      参数:
      region -
      properties -
      返回:
      entity
    • init

      public RedisCacheEntity<K,V> init(String region, redis.clients.jedis.JedisPool pool)
    • getRegion

      public String getRegion()