Example #1
0
  @Before
  public void before() throws Exception {
    client.setOptions(new ClientOptions.Builder().autoReconnect(false).build());

    // needs to be increased on slow systems...perhaps...
    client.setDefaultTimeout(3, TimeUnit.SECONDS);

    RedisCommands<String, String> connection = client.connect().sync();
    connection.flushall();
    connection.flushdb();
    connection.close();
  }