redis 批量写入及删除

import redis.clients.jedis.*;

import java.util.Arrays;

/**
 * Created by btyy on 2019/5/5.
 */
public class PiplineTest {
    private static int count = 10000;

    public static void main(String[] args){
        //useNormal();
        //usePipeline();
        delKey();
    }

    public static void usePipeline(){
        ShardedJedis jedis = getShardedJedis();
        ShardedJedisPipeline pipeline = jedis.pipelined();
        long begin = System.currentTimeMillis();
        for(int i = 0;i

 

你可能感兴趣的:(数据库)