本文整理了Java中redis.clients.jedis.JedisCluster.setbit()
方法的一些代码示例,展示了JedisCluster.setbit()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JedisCluster.setbit()
方法的具体详情如下:
包路径:redis.clients.jedis.JedisCluster
类名称:JedisCluster
方法名:setbit
暂无
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public Boolean setBit(byte[] key, long offset, boolean value) {
Assert.notNull(key, "Key must not be null!");
try {
return connection.getCluster().setbit(key, offset, value);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: hhfcyong/xxxx-dubbo
/**
* 对 key 所储存的字符串值,设置或清除指定偏移量上的位(bit)
* 位的设置或清除取决于 value 参数,可以是 0 也可以是 1
* 当 key 不存在时,自动生成一个新的字符串值
* @param key
* @param offset
* @param value
* @return 指定偏移量原来储存的位
*/
public Boolean setbit(String key,long offset,Boolean value){
return jedisCluster.setbit(key, offset, value);
}
/**
代码示例来源:origin: org.nutz/nutz-integration-jedis
public Boolean setbit(String key, long offset, boolean value) {
return jedisCluster.setbit(key, offset, value);
}
代码示例来源:origin: hhfcyong/xxxx-dubbo
/**
* 对 key 所储存的字符串值,设置或清除指定偏移量上的位(bit)
* 位的设置或清除取决于 value 参数,可以是 0 也可以是 1
* 当 key 不存在时,自动生成一个新的字符串值
* @param key
* @param offset
* @param value
* @return 指定偏移量原来储存的位
*/
public Boolean setbit(String key,Long offset,String value){
return jedisCluster.setbit(key, offset, value);
}
/**
代码示例来源:origin: org.nutz/nutz-integration-jedis
public Boolean setbit(byte[] key, long offset, boolean value) {
return jedisCluster.setbit(key, offset, value);
}
代码示例来源:origin: net.oschina.j2cache/j2cache-core
@Override
public Boolean setbit(byte[] bytes, long l, boolean b) {
return cluster.setbit(bytes, l, b);
}
代码示例来源:origin: net.oschina.j2cache/j2cache-core
@Override
public Boolean setbit(byte[] bytes, long l, byte[] bytes1) {
return cluster.setbit(bytes, l, bytes1);
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
public Boolean setbit(String key, long offset, String value) {
return jedisCluster.setbit(key, offset, value);
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
public Boolean setbit(byte[] key, long offset, byte[] value) {
return jedisCluster.setbit(key, offset, value);
}
代码示例来源:origin: wxisme/bloomfilter
public void clear(int bitIndex) {
if (this.isCluster) {
this.jedisCluster.setbit(this.name, bitIndex, false);
} else {
this.jedis.setbit(this.name, bitIndex, false);
}
}
代码示例来源:origin: wxisme/bloomfilter
public void set(int bitIndex) {
if (this.isCluster) {
this.jedisCluster.setbit(this.name, bitIndex, true);
} else {
this.jedis.setbit(this.name, bitIndex, true);
}
}
代码示例来源:origin: wxisme/bloomfilter
public void set(int bitIndex, boolean value) {
if (this.isCluster) {
this.jedisCluster.setbit(this.name, bitIndex, value);
} else {
this.jedis.setbit(this.name, bitIndex, value);
}
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public Boolean setBit(byte[] key, long offset, boolean value) {
Assert.notNull(key, "Key must not be null!");
try {
return connection.getCluster().setbit(key, offset, value);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public Boolean setBit(byte[] key, long offset, boolean value) {
Assert.notNull(key, "Key must not be null!");
try {
return connection.getCluster().setbit(key, offset, value);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
内容来源于网络,如有侵权,请联系作者删除!