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

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

Issue 660383002: Docserver: Persist stat cache for versioned file systems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
(Empty)
1 # Copyright 2014 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 from object_store_creator import ObjectStoreCreator
6 from future import Future
7
8
9 class CommitTracker(object):
10 '''Utility class for managing and querying the storage of various named commit
11 IDs.'''
12 def __init__(self, object_store_creator):
13 self._store = object_store_creator.Create(str, category='commits',
not at google - send to devlin 2014/10/24 00:04:50 s/str/CommitTracker/ ? Also it wouldn't need a cat
Ken Rockot(use gerrit already) 2014/10/24 21:26:53 Oh. Epiphany. I was making incorrect assumptions a
14 start_empty=False)
15
16 def Get(self, key):
17 return self._store.Get(key)
18
19 def Set(self, key, commit):
20 return self._store.Set(key, commit)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698