Examples of flushAll()


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

    protected Jedis createJedis() {
  Jedis j = new Jedis(hnp.getHost(), hnp.getPort());
  j.connect();
  j.auth("foobared");
  j.flushAll();
  return j;
    }

    protected void assertEquals(List<byte[]> expected, List<byte[]> actual) {
  assertEquals(expected.size(), actual.size());
View Full Code Here

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

    public static void main(String[] args) throws UnknownHostException,
      IOException {
  Jedis jedis = new Jedis(hnp.getHost(), hnp.getPort());
  jedis.connect();
  jedis.auth("foobared");
  jedis.flushAll();

  long begin = Calendar.getInstance().getTimeInMillis();

  Pipeline p = jedis.pipelined();
  for (int n = 0; n <= TOTAL_OPERATIONS; n++) {
View Full Code Here

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

    public static void main(String[] args) throws UnknownHostException,
      IOException {
  Jedis jedis = new Jedis(hnp.getHost(), hnp.getPort());
  jedis.connect();
  jedis.auth("foobared");
  jedis.flushAll();

  long begin = Calendar.getInstance().getTimeInMillis();

  for (int n = 0; n <= TOTAL_OPERATIONS; n++) {
      String key = "foo" + n;
View Full Code Here

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

    public static void main(String[] args) throws Exception {
  Jedis j = new Jedis(hnp.getHost(), hnp.getPort());
  j.connect();
  j.auth("foobared");
  j.flushAll();
  j.quit();
  j.disconnect();
  long t = System.currentTimeMillis();
  // withoutPool();
  withPool();
View Full Code Here

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

        purgeRedis();
    }

    protected void purgeRedis() {
        Jedis jedis = jedisPool.getResource();
        jedis.flushAll();
        jedisPool.returnResource(jedis);
    }
}
View Full Code Here

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

    public boolean flushall() {
        String result = "";
        Jedis jedis = null;
        try {
            jedis = this.jedisPool.getResource();
            result = jedis.flushAll();
            LOG.info("redis client name: " + this.getCacheName() + " flushall.");

        } catch (Exception e) {
            LOG.error(e.getMessage(), e);
            this.jedisPool.returnBrokenResource(jedis);
View Full Code Here

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

        redisEventStore = new RedisEventStore();
        redisEventStore.setEventSerializer(new XStreamSerializer());
        PooledRedisConnectionProvider redisConnectionProvider = new PooledRedisConnectionProvider();
        redisEventStore.setRedisConnectionProvider(redisConnectionProvider);
        Jedis conn = redisConnectionProvider.newConnection();
        conn.flushAll();
        redisConnectionProvider.closeConnection(conn);
    }

    @Override
    protected Runnable getRunnableInstance() {
View Full Code Here

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

    private int redisPort;

    public void clear() {
        Jedis jedis = jedisPool.getResource();
        try {
            jedis.flushAll();
        } finally {
            jedisPool.returnResource(jedis);
        }
    }
View Full Code Here

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

    public boolean flushall() {
        String result = "";
        Jedis jedis = null;
        try {
            jedis = this.jedisPool.getResource();
            result = jedis.flushAll();
            LOG.info("redis client name: " + this.getCacheName() + " flushall.");

        } catch (Exception e) {
            LOG.error(e.getMessage(), e);
            this.jedisPool.returnBrokenResource(jedis);
View Full Code Here

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

public class RemoveBenchmark {
    private static final int SEARCHES = 10000;

    public static void main(String[] args) throws IOException {
        Jedis jedis = new Jedis("localhost");
        jedis.flushAll();
        jedis.quit();
        jedis.disconnect();

        List<JedisShardInfo> shards = new ArrayList<JedisShardInfo>();
        shards.add(new JedisShardInfo("localhost"));
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.