gae_memcache.clear(), thanks Matt

This commit is contained in:
mdipierro committed 2012-09-14 21:17:01 -05:00
1 parent 00bfde9ce9
commit c56d5bd066
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 2.0.9 (2012-09-14 16:08:21) stable Version 2.0.9 (2012-09-14 21:16:55) stable
+4 -2
View File
@@ -47,10 +47,12 @@ class MemcacheClient(Client):
self.set((time.time(), value)) self.set((time.time(), value))
return value return value
def clear(self, key): def clear(self, key = None):
if key:
key = '%s/%s' % (self.request.application, key) key = '%s/%s' % (self.request.application, key)
self.delete(key) self.delete(key)
else:
self.flush_all()