web123456

011_RedisTemplate operation Hash

@Test void testHash(){ stringRedisTemplate.opsForHash().put("user:103","name","Li Yifeng"); stringRedisTemplate.opsForHash().put("user:103","age","21"); Map<Object, Object> entries = stringRedisTemplate.opsForHash().entries("user:103"); System.out.println(entries); }