本文整理了Java中redis.clients.jedis.JedisCluster.strlen()
方法的一些代码示例,展示了JedisCluster.strlen()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JedisCluster.strlen()
方法的具体详情如下:
包路径:redis.clients.jedis.JedisCluster
类名称:JedisCluster
方法名:strlen
暂无
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public Long strLen(byte[] key) {
Assert.notNull(key, "Key must not be null!");
try {
return connection.getCluster().strlen(key);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: hhfcyong/xxxx-dubbo
/**
* 返回 key 所储存的字符串值的长度
* 当 key 储存的不是字符串值时,返回一个错误
* @param key
* @return 字符串值的长度,当 key 不存在时,返回 0
*/
public Long strlen(String key){
return jedisCluster.strlen(key);
}
//Hash(哈希表)
代码示例来源:origin: net.oschina.j2cache/j2cache-core
@Override
public Long strlen(byte[] bytes) {
return cluster.strlen(bytes);
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
public Long strlen(byte[] key) {
return jedisCluster.strlen(key);
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
public Long strlen(String key) {
return jedisCluster.strlen(key);
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public Long strLen(byte[] key) {
Assert.notNull(key, "Key must not be null!");
try {
return connection.getCluster().strlen(key);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public Long strLen(byte[] key) {
Assert.notNull(key, "Key must not be null!");
try {
return connection.getCluster().strlen(key);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: org.nanoframework/nano-orm-jedis
@Override
public long strLen(final String key) {
Assert.hasText(key);
try {
return cluster.strlen(key);
} catch (final Throwable e) {
throw new RedisClientException(e.getMessage(), e);
}
}
内容来源于网络,如有侵权,请联系作者删除!