Skip to content
Permalink
Browse files

redisTemplate test

  • Loading branch information...
javahongxi committed Jun 27, 2019
1 parent d0b7c70 commit 25baaba7f5b5a35fd4a6726d675a12d6ede0cd8b
@@ -34,5 +34,8 @@ public void run(String... args) throws Exception {
redisTemplate.opsForValue().set("user3", user);
User user1 = (User) redisTemplate.opsForValue().get("user3");
System.out.println(user1.getUsername());

redisTemplate.opsForList().rightPush("list", 1);
System.out.println(redisTemplate.opsForList().range("list", 0, 2));
}
}

0 comments on commit 25baaba

Please sign in to comment.
You can’t perform that action at this time.