redisTemplate.boundHashOps("demo").put("1",1);
System.out.println(redisTemplate.boundHashOps("demo").get("1"));
redisTemplate.boundHashOps("demo").delete("1");
Map
Set
Map map = new HashMap<>();
map.put("3","zhangsan");
map.put("4","lisi");
redisTemplate.boundHashOps("demo").putAll(map);
Long size = redisTemplate.boundHashOps("demo").size();
System.out.println(size);
System.out.println(redisTemplate.boundHashOps("demo").hasKey("1"));
List
Long increment = redisTemplate.boundHashOps("demo").increment("1", 1);
System.out.println(increment);
Double aDouble = redisTemplate.boundHashOps("demo").increment("1", 1.1);
System.out.println(aDouble);
System.out.println(redisTemplate.boundHashOps("demo").putIfAbsent("7", 5));
redisTemplate.boundHashOps("demo").expire(100000, TimeUnit.MILLISECONDS);
redisTemplate.boundHashOps(key).rename("test");
System.out.println(redisTemplate.boundHashOps("demo").getType());
System.out.println(redisTemplate.boundHashOps("demo").getExpire());