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

Unified Diff: chrome/common/extensions/docs/server2/object_store_creator.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/object_store_creator.py
diff --git a/chrome/common/extensions/docs/server2/object_store_creator.py b/chrome/common/extensions/docs/server2/object_store_creator.py
index c14e42396e47e03d907e90a94a34f17761a627fd..2c3e580aee765d314410d15d3ceba654a57df34a 100644
--- a/chrome/common/extensions/docs/server2/object_store_creator.py
+++ b/chrome/common/extensions/docs/server2/object_store_creator.py
@@ -2,8 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from in_memory_object_store import InMemoryObjectStore
+from cache_chain_object_store import CacheChainObjectStore
from memcache_object_store import MemcacheObjectStore
+from persistent_object_store import PersistentObjectStore
class ObjectStoreCreator(object):
class Factory(object):
@@ -45,4 +46,5 @@ class ObjectStoreCreator(object):
namespace = '%s/%s' % (namespace, version)
if self._store_type is not None:
return self._store_type(namespace)
- return InMemoryObjectStore(MemcacheObjectStore(namespace))
+ return CacheChainObjectStore((MemcacheObjectStore(namespace),
+ PersistentObjectStore(namespace)))
« no previous file with comments | « chrome/common/extensions/docs/server2/object_store.py ('k') | chrome/common/extensions/docs/server2/offline_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698