Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
cuxs
dbredis
Commits
b4f84d22
Commit
b4f84d22
authored
Sep 23, 2021
by
Timothy Richard
Browse files
remove panic
parent
c4fe0348
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
setup.go
setup.go
+4
-3
No files found.
setup.go
View file @
b4f84d22
...
...
@@ -8,6 +8,9 @@ import (
"net/http"
"os"
"time"
"github.com/labstack/echo"
"github.com/ulule/limiter/drivers/store/redis"
"github.com/go-pkgz/expirable-cache"
)
var
(
...
...
@@ -75,9 +78,7 @@ func (m *RedisDB) DeleteCacheWhereLike(key string) error { // add * in the last
m
.
Cache
.
Delete
(
ctx
,
iter
.
Val
())
foundedRecordCount
++
}
if
err
:=
iter
.
Err
();
err
!=
nil
{
panic
(
err
)
}
return
iter
.
Err
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment