Examples of flushDB()


Examples of redis.clients.jedis.Jedis.flushDB()

    }

    public void run() {
        Jedis conn = new Jedis("localhost");
        conn.select(15);
        conn.flushDB();

        testLongZiplistPerformance(conn);
        testShardKey(conn);
        testShardedHash(conn);
        testShardedSadd(conn);
View Full Code Here

Examples of redis.clients.jedis.Jedis.flushDB()

        jedis.connect();
        if (password != null)
        {
            jedis.auth(password);
        }
        jedis.flushDB();
        jedis.disconnect();
    }

    /**
     * Start Redis server.
View Full Code Here

Examples of redis.clients.jedis.Jedis.flushDB()

            String password = RedisPropertyReader.rsmd.getPassword() != null ? RedisPropertyReader.rsmd.getPassword()
                    : (String) props.get(PersistenceProperties.KUNDERA_PASSWORD);
            Jedis connection = new Jedis(contactNode, Integer.valueOf(defaultPort));
            connection.auth(password);
            connection.connect();
            connection.flushDB();
        }
    }

    /**
     *
 
View Full Code Here

Examples of redis.clients.jedis.Jedis.flushDB()

        String password = RedisPropertyReader.rsmd.getPassword() != null ? RedisPropertyReader.rsmd.getPassword()
                : (String) props.get(PersistenceProperties.KUNDERA_PASSWORD);
        Jedis connection = new Jedis(contactNode, Integer.valueOf(defaultPort));
        connection.auth(password);
        connection.connect();
        connection.flushDB();
    }
}
View Full Code Here

Examples of redis.clients.jedis.Jedis.flushDB()

   * You should only call this if you really know what you're doing.
   */
  public void completelyClearRedis() {
    Jedis jedis = getJedisPool().getResource();
    try {
      jedis.flushDB();
      getJedisPool().returnResource(jedis);
    } catch (Exception e) {
      s_logger.error("Unable to clear database", e);
      getJedisPool().returnBrokenResource(jedis);
      throw new OpenGammaRuntimeException("Unable to clear database", e);
View Full Code Here

Examples of redis.clients.jedis.Jedis.flushDB()

  }
 
  @BeforeMethod
  public void clearRedisDb() {
    Jedis jedis = _jedisPool.getResource();
    jedis.flushDB();
    _jedisPool.returnResource(jedis);
  }

  /**
   * Gets the jedisPool.
View Full Code Here

Examples of redis.clients.jedis.Jedis.flushDB()

  @BeforeMethod
  public void cleanUpRedis() {
    worker.togglePause(false);
    Jedis jedis = jedisPool.getResource();
    jedis.flushDB();
    jedisPool.returnResource(jedis);
  }

  @Test
  public void shouldAddJob() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.