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

Side by Side Diff: chrome/common/extensions/docs/server2/object_store.py

Issue 10829348: Extensions Docs Server: Large performance increase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes and ObjectStore 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # Default to a 5 minute cache timeout.
6 CACHE_TIMEOUT = 300
7
8 BRANCH_UTILITY = 'BranchUtility'
9 FILE_SYSTEM_CACHE = 'FileSystemCache'
10 FILE_SYSTEM_CACHE_LISTING = 'FileSystemCacheListing'
11 FILE_SYSTEM_READ = 'Read'
12 FILE_SYSTEM_STAT = 'Stat'
13 GITHUB_STAT = 'GithubStat'
14
15 class ObjectStore(object):
16 def Set(self, key, value, namespace, time=CACHE_TIMEOUT):
17 raise NotImplementedError()
18
19 def SetMulti(self, mapping, namespace, time=CACHE_TIMEOUT):
20 raise NotImplementedError()
21
22 def Get(self, key, namespace, time=CACHE_TIMEOUT):
not at google - send to devlin 2012/08/21 00:30:11 I think these all need a bit of documentation, par
cduvall 2012/08/21 01:33:33 Done.
23 raise NotImplementedError()
24
25 def GetMulti(self, keys, namespace, time=CACHE_TIMEOUT):
26 raise NotImplementedError()
27
28 def Delete(self, key, namespace):
29 raise NotImplementedError()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698