1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #16533 -- Stopped the memcache cache backend from raising an exception if the timeout value isn't an integer. Thanks, Jeff Balogh.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel
2011-07-29 09:39:23 +00:00
parent 4f50d248a8
commit db594f90ba
2 changed files with 6 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ class BaseMemcachedCache(BaseCache):
#
# This means that we have to switch to absolute timestamps.
timeout += int(time.time())
return timeout
return int(timeout)
def add(self, key, value, timeout=0, version=None):
key = self.make_key(key, version=version)