将缓存key含*号的截取
This commit is contained in:
1 parent
d782595d8c
commit
7c07d9b803
1 file changed
+1
Vendored
+1
@@ -27,6 +27,7 @@ func DeleteLocal(key string) {
|
||||
|
||||
// 获取指定前缀的所有键
|
||||
func GetLocalKeys(prefix string) []string {
|
||||
prefix = strings.TrimSuffix(prefix, "*")
|
||||
var keys []string
|
||||
for key := range cNoExpiration.Items() {
|
||||
if strings.HasPrefix(key, prefix) {
|
||||
|
||||
Reference in new issue
Block a user