From dd422e13aa8cf72e1b305db847d3b95f3f64389c Mon Sep 17 00:00:00 2001 From: xuwujing <1060589146@qq.com> Date: Wed, 17 Jan 2024 14:49:19 +0800 Subject: [PATCH] Changes --- src/main/java/com/pancm/redis/RedisTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/pancm/redis/RedisTest.java b/src/main/java/com/pancm/redis/RedisTest.java index 10eed50..0b27397 100644 --- a/src/main/java/com/pancm/redis/RedisTest.java +++ b/src/main/java/com/pancm/redis/RedisTest.java @@ -25,7 +25,6 @@ public static void main(String[] args) { System.out.println("连接成功"); // 查看服务是否运行 System.out.println("服务正在运行: " + jedis.ping()); - // 存储到列表中 jedis.lpush("list", "redis"); jedis.lpush("list", "java"); @@ -35,7 +34,6 @@ public static void main(String[] args) { for (int i = 0, j = list.size(); i < j; i++) { System.out.println("list的输出结果:" + list.get(i)); } - // 设置 redis 字符串数据 jedis.set("rst", "redisStringTest"); // 获取存储的数据并输出