本文整理了Java中redis.clients.jedis.JedisCluster.rpushx()
方法的一些代码示例,展示了JedisCluster.rpushx()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JedisCluster.rpushx()
方法的具体详情如下:
包路径:redis.clients.jedis.JedisCluster
类名称:JedisCluster
方法名:rpushx
暂无
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public Long rPushX(byte[] key, byte[] value) {
Assert.notNull(key, "Key must not be null!");
Assert.notNull(value, "Value must not be null!");
try {
return connection.getCluster().rpushx(key, value);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: net.oschina.j2cache/j2cache-core
@Override
public Long rpushx(byte[] bytes, byte[]... bytes1) {
return cluster.rpushx(bytes, bytes1);
}
代码示例来源:origin: hhfcyong/xxxx-dubbo
/**
* 将值 value 插入到列表 key 的表尾
* @param key
* @param value
* @return 列表长度
*/
public long rpushx(String key,String value){
return jedisCluster.rpushx(key, value);
}
//Set(集合)
代码示例来源:origin: org.nutz/nutz-integration-jedis
public Long rpushx(byte[] key, byte[]... string) {
return jedisCluster.rpushx(key, string);
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
public Long rpushx(String key, String... string) {
return jedisCluster.rpushx(key, string);
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public Long rPushX(byte[] key, byte[] value) {
Assert.notNull(key, "Key must not be null!");
Assert.notNull(value, "Value must not be null!");
try {
return connection.getCluster().rpushx(key, value);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public Long rPushX(byte[] key, byte[] value) {
Assert.notNull(key, "Key must not be null!");
Assert.notNull(value, "Value must not be null!");
try {
return connection.getCluster().rpushx(key, value);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: com.github.yamingd.argo/argo-redis
@Override
public Long rpushx(String key, String... values) {
return jedisCluster.rpushx(SafeEncoder.encode(key), SafeEncoder.encodeMany(values));
}
代码示例来源:origin: com.github.yamingd.argo/argo-redis
@Override
public <T> Long rpushx(Class<T> clazz, String key, T... values) {
try {
byte[][] bytes = new byte[values.length][];
for (int i = 0; i < values.length; i++) {
bytes[i] = getRedisBuffer().write(values[i]);
}
return jedisCluster.rpushx(SafeEncoder.encode(key), bytes);
} catch (IOException e) {
logger.error(e.getMessage(), e);
return 0l;
}
}
代码示例来源:origin: org.nanoframework/nano-orm-jedis
for (String value : values) {
if (pushed == 0) {
pushed += cluster.rpushx(key, value);
} else if (cluster.rpushx(key, value) > 0) {
pushed++;
内容来源于网络,如有侵权,请联系作者删除!