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
3afb5a3e
Commit
3afb5a3e
authored
Dec 19, 2013
by
wtracyliu
Committed by
Sean Bleier
Dec 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a bug when incr delta > 1
parent
45b266aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cache.py
redis_cache/cache.py
+1
-1
No files found.
redis_cache/cache.py
View file @
3afb5a3e
...
@@ -294,7 +294,7 @@ class CacheClass(BaseCache):
...
@@ -294,7 +294,7 @@ class CacheClass(BaseCache):
try
:
try
:
value
=
self
.
_client
.
incr
(
key
,
delta
)
value
=
self
.
_client
.
incr
(
key
,
delta
)
except
redis
.
ResponseError
:
except
redis
.
ResponseError
:
value
=
self
.
get
(
key
)
+
1
value
=
self
.
get
(
key
)
+
delta
self
.
set
(
key
,
value
)
self
.
set
(
key
,
value
)
return
value
return
value
...
...
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