redis.clients.jedis.JedisCluster.hvals()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(167)

本文整理了Java中redis.clients.jedis.JedisCluster.hvals()方法的一些代码示例,展示了JedisCluster.hvals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JedisCluster.hvals()方法的具体详情如下:
包路径:redis.clients.jedis.JedisCluster
类名称:JedisCluster
方法名:hvals

JedisCluster.hvals介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-data-redis

@Override
public List<byte[]> hVals(byte[] key) {
  Assert.notNull(key, "Key must not be null!");
  try {
    return new ArrayList<>(connection.getCluster().hvals(key));
  } catch (Exception ex) {
    throw convertJedisAccessException(ex);
  }
}

代码示例来源:origin: hhfcyong/xxxx-dubbo

/**
 * 返回哈希表 key 中所有域的值
 * @param key
 * @return 一个包含哈希表中所有值的表,当 key 不存在时,返回一个空表
 */
public List<String> hvals(String key){   	
  return jedisCluster.hvals(key);
}
//List(列表)

代码示例来源:origin: net.oschina.j2cache/j2cache-core

@Override
public Collection<byte[]> hvals(byte[] bytes) {
  return cluster.hvals(bytes);
}

代码示例来源:origin: org.nutz/nutz-integration-jedis

public List<String> hvals(String key) {
  return jedisCluster.hvals(key);
}

代码示例来源:origin: org.nutz/nutz-integration-jedis

public List<byte[]> hvals(byte[] key) {
  return new ArrayList<byte[]>(jedisCluster.hvals(key));
}

代码示例来源:origin: org.springframework.data/spring-data-redis

@Override
public List<byte[]> hVals(byte[] key) {
  Assert.notNull(key, "Key must not be null!");
  try {
    return new ArrayList<>(connection.getCluster().hvals(key));
  } catch (Exception ex) {
    throw convertJedisAccessException(ex);
  }
}

代码示例来源:origin: org.nanoframework/nano-orm-jedis

@Override
public List<String> hvals(final String key) {
  Assert.hasText(key);
  try {
    return cluster.hvals(key);
  } catch (final Throwable e) {
    throw new RedisClientException(e.getMessage(), e);
  }
}

代码示例来源:origin: apache/servicemix-bundles

@Override
public List<byte[]> hVals(byte[] key) {
  Assert.notNull(key, "Key must not be null!");
  try {
    return new ArrayList<>(connection.getCluster().hvals(key));
  } catch (Exception ex) {
    throw convertJedisAccessException(ex);
  }
}

代码示例来源:origin: yangfuhai/jboot

/**
 * 返回哈希表 key 中所有域的值。
 */
@SuppressWarnings("rawtypes")
public List hvals(Object key) {
  Collection<byte[]> data = jedisCluster.hvals(keyToBytes(key));
  return valueListFromBytesList(data);
}

代码示例来源:origin: yrain/smart-cache

/**
 * 返回哈希表 key 中所有域的值。
 * 返回值:
 * 一个包含哈希表中所有值的表。
 * 当 key 不存在时,返回一个空表。
 */
public <E> List<E> hvals(Object key) {
  if (null == key) {
    return null;
  }
  if (cluster) {
    return convertBytesCollectionToList_deserializeVal(jedisCluster.hvals(serializeKey(key)));
  } else {
    return convertBytesCollectionToList_deserializeVal(jedisOperator.hvals(serializeKey(key)));
  }
}

相关文章

微信公众号

最新文章

更多

JedisCluster类方法