Loading

Redis Java调用

Redis Java调用

package com.stono.redis;

import redis.clients.jedis.Jedis;

public class RedisJava {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("localhost");
        System.out.println("ok");
        System.out.println("ping "+jedis.ping());
    }
}

 

posted @ 2017-12-23 20:12  stono  阅读(125)  评论(0编辑  收藏  举报