本文整理了Java中redis.clients.jedis.Pipeline.echo()
方法的一些代码示例,展示了Pipeline.echo()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Pipeline.echo()
方法的具体详情如下:
包路径:redis.clients.jedis.Pipeline
类名称:Pipeline
方法名:echo
暂无
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public byte[] echo(byte[] message) {
try {
if (isPipelined()) {
pipeline(newJedisResult(getRequiredPipeline().echo(message)));
return null;
}
if (isQueueing()) {
transaction(newJedisResult(getRequiredTransaction().echo(message)));
return null;
}
return jedis.echo(message);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: com.netflix.dyno/dyno-jedis
@Override
Response<String> execute(Pipeline jedisPipeline) throws DynoException {
return jedisPipeline.echo(string);
}
}.execute(string, OpName.ECHO);
代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis
@Override
public Response<String> echo(String string) {
String command = "echo";
return instrumented(command, () -> delegated.echo(string));
}
代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis
@Override
public Response<byte[]> echo(byte[] string) {
String command = "echo";
return instrumented(command, () -> delegated.echo(string));
}
代码示例来源:origin: tonivade/claudb
Pipeline p = jedis.pipelined();
p.ping();
p.echo("Hi!");
p.set("a", "1");
p.strlen("a");
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public byte[] echo(byte[] message) {
try {
if (isPipelined()) {
pipeline(newJedisResult(getRequiredPipeline().echo(message)));
return null;
}
if (isQueueing()) {
transaction(newJedisResult(getRequiredTransaction().echo(message)));
return null;
}
return jedis.echo(message);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public byte[] echo(byte[] message) {
try {
if (isPipelined()) {
pipeline(newJedisResult(getRequiredPipeline().echo(message)));
return null;
}
if (isQueueing()) {
transaction(newJedisResult(getRequiredTransaction().echo(message)));
return null;
}
return jedis.echo(message);
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
内容来源于网络,如有侵权,请联系作者删除!