@Test
 public void testKeys() throws Exception {
   assertTrue(template.keys("*") != null);
 }
예제 #2
0
 // 正则表达式 读取key 对数据库性能影响很大
 @Deprecated
 public Set keys(String pattern) {
   return (Set) redisTemplate.keys(pattern);
 }