Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
Django-Redis-Cache
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared
Django-Redis-Cache
Commits
8aea67c0
Commit
8aea67c0
authored
Apr 09, 2017
by
Sean Bleier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://github.com/dinie/django-redis-cache
into scan-instead-of-keys
parents
7eb7d637
4b1fa706
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
base.py
redis_cache/backends/base.py
+2
-2
No files found.
redis_cache/backends/base.py
View file @
8aea67c0
...
...
@@ -393,8 +393,8 @@ class BaseRedisCache(BaseCache):
return
0
def
_delete_pattern
(
self
,
client
,
pattern
):
keys
=
client
.
keys
(
pattern
)
if
len
(
keys
)
:
cursor
,
keys
=
client
.
scan
(
match
=
pattern
)
while
cursor
:
client
.
delete
(
*
keys
)
def
delete_pattern
(
self
,
pattern
,
version
=
None
):
...
...
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