ValueOperations<String, String> operations = stringRedisTemplate.opsForValue();

Map<String, String> map = new HashMap<>();
map.put("str_a", "a");
map.put("str_b", "b");
operations.multiSet(map);

Set<String> keys = stringRedisTemplate.keys("str_*");
System.out.println(keys);
assert keys != null;
stringRedisTemplate.delete(keys);

  

相关文章:

  • 2021-07-16
  • 2021-09-27
  • 2022-01-20
  • 2022-01-30
  • 2022-03-05
  • 2021-07-10
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-11-30
  • 2021-12-31
  • 2021-12-08
相关资源
相似解决方案