随笔分类 -  Redis

摘要:public static void main(String[] args) { Jedis jedis = new Jedis("127.0.0.1",6379); jedis.auth("12345"); System.out.println("清空数据:"+jedis.flushDB()); 阅读全文
posted @ 2021-08-02 17:34 zheng_newbie 阅读(270) 评论(0) 推荐(0)
摘要:public static void main(String[] args) { Jedis jedis = new Jedis("127.0.0.1",6379); jedis.auth("12345"); jedis.flushDB(); System.out.println(" 添加一个Lis 阅读全文
posted @ 2021-08-02 17:32 zheng_newbie 阅读(158) 评论(0) 推荐(0)
摘要:public static void main(String[] args) { Jedis jedis = new Jedis("127.0.0.1",6379); jedis.auth("12345"); jedis.flushDB(); Map<String, String> map = ne 阅读全文
posted @ 2021-08-02 17:32 zheng_newbie 阅读(240) 评论(0) 推荐(0)
摘要:public static void main(String[] args) { Jedis jedis = new Jedis("127.0.0.1",6379); jedis.auth("12345"); jedis.flushDB(); System.out.println(" 向集合中添加元 阅读全文
posted @ 2021-08-02 17:31 zheng_newbie 阅读(93) 评论(0) 推荐(0)
摘要:public static void main(String[] args) { Jedis jedis = new Jedis("127.0.0.1",6379); jedis.auth("12345"); System.out.println(" 增加数据 "); System.out.prin 阅读全文
posted @ 2021-08-02 17:30 zheng_newbie 阅读(37) 评论(0) 推荐(0)