redis.clients.jedis.JedisCluster.echo()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(165)

本文整理了Java中redis.clients.jedis.JedisCluster.echo()方法的一些代码示例,展示了JedisCluster.echo()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JedisCluster.echo()方法的具体详情如下:
包路径:redis.clients.jedis.JedisCluster
类名称:JedisCluster
方法名:echo

JedisCluster.echo介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-data-redis

@Override
public byte[] echo(byte[] message) {
  try {
    return cluster.echo(message);
  } catch (Exception ex) {
    throw convertJedisAccessException(ex);
  }
}

代码示例来源:origin: org.apache.bahir/flink-connector-redis

@Override
public void open() throws Exception {
  // echo() tries to open a connection and echos back the
  // message passed as argument. Here we use it to monitor
  // if we can communicate with the cluster.
  jedisCluster.echo("Test");
}

代码示例来源:origin: hhfcyong/xxxx-dubbo

/**
 * 打印一个特定的信息 message ,测试时使用
 * @param message
 * @return message 自身
 */
public String echo(String message){
  return jedisCluster.echo(message);
}
/**

代码示例来源:origin: apache/bahir-flink

@Override
public void open() throws Exception {
  // echo() tries to open a connection and echos back the
  // message passed as argument. Here we use it to monitor
  // if we can communicate with the cluster.
  jedisCluster.echo("Test");
}

代码示例来源:origin: net.oschina.j2cache/j2cache-core

@Override
public byte[] echo(byte[] bytes) {
  return cluster.echo(bytes);
}

代码示例来源:origin: org.nutz/nutz-integration-jedis

public String echo(String string) {
  return jedisCluster.echo(string);
}

代码示例来源:origin: org.nutz/nutz-integration-jedis

public byte[] echo(byte[] string) {
  return jedisCluster.echo(string);
}

代码示例来源:origin: org.springframework.data/spring-data-redis

@Override
public byte[] echo(byte[] message) {
  try {
    return cluster.echo(message);
  } catch (Exception ex) {
    throw convertJedisAccessException(ex);
  }
}

代码示例来源:origin: apache/servicemix-bundles

@Override
public byte[] echo(byte[] message) {
  try {
    return cluster.echo(message);
  } catch (Exception ex) {
    throw convertJedisAccessException(ex);
  }
}

相关文章

微信公众号

最新文章

更多

JedisCluster类方法