Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Unified Diff: chrome/common/extensions/docs/server2/memcache_object_store.py

Issue 14218004: Devserver: only populate data during cron jobs, meaning all data from instances (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integration test Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/memcache_object_store.py
diff --git a/chrome/common/extensions/docs/server2/memcache_object_store.py b/chrome/common/extensions/docs/server2/memcache_object_store.py
index f16eacf529cbb4cb8ab810074c738161374bf342..76f1485066439fd3458cea96f6fb2ded32aff5f0 100644
--- a/chrome/common/extensions/docs/server2/memcache_object_store.py
+++ b/chrome/common/extensions/docs/server2/memcache_object_store.py
@@ -3,7 +3,7 @@
# found in the LICENSE file.
from appengine_wrappers import memcache
-from object_store import ObjectStore, CACHE_TIMEOUT
+from object_store import ObjectStore
class _AsyncMemcacheGetFuture(object):
def __init__(self, rpc):
@@ -16,14 +16,12 @@ class MemcacheObjectStore(ObjectStore):
def __init__(self, namespace):
self._namespace = namespace
- def SetMulti(self, mapping, time=CACHE_TIMEOUT):
- memcache.Client().set_multi_async(mapping,
- namespace=self._namespace,
- time=time)
+ def SetMulti(self, mapping):
+ memcache.Client().set_multi_async(mapping, namespace=self._namespace)
- def GetMulti(self, keys, time=CACHE_TIMEOUT):
+ def GetMulti(self, keys):
rpc = memcache.Client().get_multi_async(keys, namespace=self._namespace)
return _AsyncMemcacheGetFuture(rpc)
- def Delete(self, key):
- memcache.delete(key, namespace=self._namespace)
+ def DelMulti(self, keys):
+ memcache.delete_multi(keys, namespace=self._namespace)
« no previous file with comments | « chrome/common/extensions/docs/server2/local_renderer.py ('k') | chrome/common/extensions/docs/server2/object_store.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698