Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwujing committed Jan 17, 2024
1 parent d26489d commit dd422e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/pancm/redis/RedisTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
// 获取存储的数据并输出
Expand Down

0 comments on commit dd422e1

Please sign in to comment.