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

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

Issue 10829348: Extensions Docs Server: Large performance increase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/appengine_memcache.py
diff --git a/chrome/common/extensions/docs/server2/appengine_memcache.py b/chrome/common/extensions/docs/server2/appengine_memcache.py
deleted file mode 100644
index ce01e8b52866880069f1f3a8d419f7e21fe25865..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/docs/server2/appengine_memcache.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from appengine_wrappers import memcache
-
-MEMCACHE_FILE_SYSTEM_READ = 'MemcacheFileSystem.Get'
-MEMCACHE_FILE_SYSTEM_STAT = 'MemcacheFileSystem.Stat'
-MEMCACHE_GITHUB_STAT = 'MemcacheGithub.Stat'
-MEMCACHE_BRANCH_UTILITY = 'BranchUtility'
-
-class AppEngineMemcache(object):
- """A wrapper around the standard App Engine memcache that enforces namespace
- use. Uses a branch to make sure there are no key collisions if separate
- branches cache the same file.
- """
- def __init__(self, branch):
- self._branch = branch
-
- def Set(self, key, value, namespace, time=60):
- return memcache.set(key,
- value,
- namespace=self._branch + '.' + namespace,
- time=time)
-
- def Get(self, key, namespace):
- return memcache.get(key, namespace=self._branch + '.' + namespace)
-
- def Delete(self, key, namespace):
- return memcache.delete(key, namespace=self._branch + '.' + namespace)
« no previous file with comments | « chrome/common/extensions/docs/server2/app.yaml ('k') | chrome/common/extensions/docs/server2/appengine_url_fetcher.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698