本文整理了Java中redis.clients.jedis.Jedis.sscan()
方法的一些代码示例,展示了Jedis.sscan()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jedis.sscan()
方法的具体详情如下:
包路径:redis.clients.jedis.Jedis
类名称:Jedis
方法名:sscan
暂无
代码示例来源:origin: sohutv/cachecloud
@Override
public ScanResult<byte[]> execute(Jedis connection) {
return connection.sscan(key, cursor, params);
}
}.runBinary(key);
代码示例来源:origin: sohutv/cachecloud
@Override
public ScanResult<String> execute(Jedis connection) {
return connection.sscan(key, cursor);
}
}.run(key);
代码示例来源:origin: sohutv/cachecloud
@Override
public ScanResult<String> execute(Jedis connection) {
return connection.sscan(key, cursor, params);
}
}.run(key);
代码示例来源:origin: sohutv/cachecloud
@Override
public ScanResult<String> sscan(String key, final String cursor) {
Jedis j = getShard(key);
return j.sscan(key, cursor);
}
代码示例来源:origin: sohutv/cachecloud
@Override
public ScanResult<String> sscan(String key, String cursor, ScanParams params) {
Jedis j = getShard(key);
return j.sscan(key, cursor, params);
}
代码示例来源:origin: sohutv/cachecloud
@Override
public ScanResult<String> sscan(final String key, final String cursor) {
return sscan(key, cursor, new ScanParams());
}
代码示例来源:origin: Netflix/conductor
@Override
@Deprecated
public ScanResult<String> sscan(String key, int cursor) {
Jedis jedis = null;
try {
jedis = jedisPool.getResource();
return jedis.sscan(key, cursor);
} finally {
if (jedis != null)
jedis.close();
}
}
代码示例来源:origin: Netflix/conductor
@Override
public ScanResult<String> sscan(String key, String cursor, ScanParams params) {
Jedis jedis = null;
try {
jedis = jedisPool.getResource();
return jedis.sscan(key, cursor, params);
} finally {
if (jedis != null)
jedis.close();
}
}
代码示例来源:origin: Netflix/conductor
@Override
public ScanResult<String> sscan(String key, String cursor) {
Jedis jedis = null;
try {
jedis = jedisPool.getResource();
return jedis.sscan(key, cursor);
} finally {
if (jedis != null)
jedis.close();
}
}
代码示例来源:origin: spring-projects/spring-data-redis
@Override
protected ScanIteration<byte[]> doScan(byte[] key, long cursorId, ScanOptions options) {
if (isQueueing() || isPipelined()) {
throw new UnsupportedOperationException("'SSCAN' cannot be called in pipeline / transaction mode.");
}
ScanParams params = JedisConverters.toScanParams(options);
redis.clients.jedis.ScanResult<byte[]> result = connection.getJedis().sscan(key,
JedisConverters.toBytes(cursorId), params);
return new ScanIteration<>(Long.valueOf(result.getCursor()), result.getResult());
}
代码示例来源:origin: io.leopard/leopard-redis
@SuppressWarnings("deprecation")
@Override
public ScanResult<String> sscan(String key, int cursor) {
return jedis.sscan(key, cursor);
}
代码示例来源:origin: io.leopard/leopard-redis
@Override
public ScanResult<String> sscan(String key, String cursor, ScanParams params) {
return jedis.sscan(key, cursor, params);
}
代码示例来源:origin: io.leopard/leopard-redis
@Override
public ScanResult<String> sscan(String key, String cursor) {
return jedis.sscan(key, cursor);
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public ScanResult<byte[]> sscan(final byte[] key, final byte[] cursor) {
Jedis j = getShard(key);
return j.sscan(key, cursor);
}
代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis
@Override
public ScanResult<String> sscan(String key, String cursor) {
String command = "sscan";
return instrumented(command, () -> delegated.sscan(key, cursor));
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
public ScanResult<String> sscan(String key, String cursor, ScanParams params) {
Jedis jedis = getJedis();
try {
return jedis.sscan(key, cursor, params);
} finally {Streams.safeClose(jedis);}
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
public ScanResult<byte[]> sscan(byte[] key, byte[] cursor, ScanParams params) {
Jedis jedis = getJedis();
try {
return jedis.sscan(key, cursor, params);
} finally {Streams.safeClose(jedis);}
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
protected ScanIteration<byte[]> doScan(byte[] key, long cursorId, ScanOptions options) {
if (isQueueing() || isPipelined()) {
throw new UnsupportedOperationException("'SSCAN' cannot be called in pipeline / transaction mode.");
}
ScanParams params = JedisConverters.toScanParams(options);
redis.clients.jedis.ScanResult<byte[]> result = connection.getJedis().sscan(key,
JedisConverters.toBytes(cursorId), params);
return new ScanIteration<>(Long.valueOf(result.getStringCursor()), result.getResult());
}
代码示例来源:origin: mindwind/craft-atom
private ScanResult<String> sscan_match(Jedis j, String key, String cursor, String pattern) {
ScanParams param = new ScanParams();
param.match(pattern);
redis.clients.jedis.ScanResult<String> sr = j.sscan(key, cursor, param);
return new ScanResult<String>(sr.getStringCursor(), sr.getResult());
}
代码示例来源:origin: mindwind/craft-atom
private ScanResult<String> sscan_match_count(Jedis j, String key, String cursor, String pattern, int count) {
ScanParams param = new ScanParams();
param.match(pattern);
param.count(count);
redis.clients.jedis.ScanResult<String> sr = j.sscan(key, cursor, param);
return new ScanResult<String>(sr.getStringCursor(), sr.getResult());
}
内容来源于网络,如有侵权,请联系作者删除!