OLD | NEW |
---|---|
(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() | |
OLD | NEW |