gae_memcache.clear(), thanks Matt
This commit is contained in:
1 parent
4031b49d77
commit
b52cf468af
2 files changed
+7
-5
No files matched your search
@@ -1 +1 @@
|
||||
Version 2.0.9 (2012-09-14 16:08:21) stable
|
||||
Version 2.0.9 (2012-09-14 21:16:55) stable
|
||||
@@ -47,10 +47,12 @@ class MemcacheClient(Client):
|
||||
self.set((time.time(), value))
|
||||
return value
|
||||
|
||||
def clear(self, key):
|
||||
key = '%s/%s' % (self.request.application, key)
|
||||
self.delete(key)
|
||||
|
||||
def clear(self, key = None):
|
||||
if key:
|
||||
key = '%s/%s' % (self.request.application, key)
|
||||
self.delete(key)
|
||||
else:
|
||||
self.flush_all()
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user