新增查询全部keys方法
This commit is contained in:
parent
ef6286ec1b
commit
c3070c9865
|
@ -7,6 +7,7 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
|
@ -68,6 +69,10 @@ public class RedisCache {
|
|||
return redisTemplate.hasKey(key);
|
||||
}
|
||||
|
||||
public Set<String> keys(String pattern) {
|
||||
return redisTemplate.keys(pattern);
|
||||
}
|
||||
|
||||
public void delete(String key) {
|
||||
redisTemplate.delete(key);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user