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

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

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

JedisCluster.hexists介绍

暂无

代码示例

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

@Override
public Boolean hExists(byte[] key, byte[] field) {
  Assert.notNull(key, "Key must not be null!");
  Assert.notNull(field, "Field must not be null!");
  try {
    return connection.getCluster().hexists(key, field);
  } catch (Exception ex) {
    throw convertJedisAccessException(ex);
  }
}

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

/**
 * 查看哈希表 key 中,给定域 field 是否存在
 * @param key
 * @param field
 * @return 如果哈希表含有给定域,返回 1,如果哈希表不含有给定域,或 key 不存在,返回 0 
 */
public Boolean hexists(String key,String field){
  return jedisCluster.hexists(key, field);
}
/**

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

@Override
public Boolean hexists(byte[] bytes, byte[] bytes1) {
  return cluster.hexists(bytes, bytes1);
}

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

public Boolean hexists(String key, String field) {
  return jedisCluster.hexists(key, field);
}

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

public Boolean hexists(byte[] key, byte[] field) {
  return jedisCluster.hexists(key, field);
}

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

@Override
public Boolean hExists(byte[] key, byte[] field) {
  Assert.notNull(key, "Key must not be null!");
  Assert.notNull(field, "Field must not be null!");
  try {
    return connection.getCluster().hexists(key, field);
  } catch (Exception ex) {
    throw convertJedisAccessException(ex);
  }
}

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

@Override
public Boolean hExists(byte[] key, byte[] field) {
  Assert.notNull(key, "Key must not be null!");
  Assert.notNull(field, "Field must not be null!");
  try {
    return connection.getCluster().hexists(key, field);
  } catch (Exception ex) {
    throw convertJedisAccessException(ex);
  }
}

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

/**
 * 查看哈希表 key 中,给定域 field 是否存在。
 */
public boolean hexists(Object key, Object field) {
  return jedisCluster.hexists(keyToBytes(key), valueToBytes(field));
}

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

@Override
public boolean hexists(final String key, final String field) {
  Assert.hasText(key);
  Assert.hasText(field);
  try {
    return cluster.hexists(key, field);
  } catch (final Throwable e) {
    throw new RedisClientException(e.getMessage(), e);
  }
}

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

/**
 * 判断哈希表 key 中,指定 field 是否存在。
 */
public boolean hexists(Object key, Object field) {
  if (null == key || null == field) {
    return false;
  }
  if (cluster) {
    return jedisCluster.hexists(serializeKey(key), serializeKey(field));
  } else {
    return jedisOperator.hexists(serializeKey(key), serializeKey(field));
  }
}

相关文章

微信公众号

最新文章

更多

JedisCluster类方法