Package redis.clients.jedis

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


    private int redisPort;

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

    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

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

public class IndexBenchmark {
    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.