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

Unified Diff: appengine/findit/lib/cache.py

Issue 2538373003: [Culprit-Finder] Merge lib/ to libs/. (Closed)
Patch Set: Rebase and fix nits. Created 4 years 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: appengine/findit/lib/cache.py
diff --git a/appengine/findit/lib/cache.py b/appengine/findit/lib/cache.py
deleted file mode 100644
index e5da69b2345e4cb87253a3eb795c64512024c0be..0000000000000000000000000000000000000000
--- a/appengine/findit/lib/cache.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 2016 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.
-
-
-class Cache(object):
- """An interface to cache and retrieve data.
-
- Subclasses should implement the Get/Set functions.
- TODO: Add a Delete function (default to no-op) if needed later.
- """
- def Get(self, key):
- """Returns the cached data for the given key if available.
-
- Args:
- key (str): The key to identify the cached data.
- """
- raise NotImplementedError()
-
- def Set(self, key, data, expire_time=0):
- """Cache the given data which is identified by the given key.
-
- Args:
- key (str): The key to identify the cached data.
- data (object): The python object to be cached.
- expire_time (int): Number of seconds from current time (up to 1 month).
- """
- raise NotImplementedError()

Powered by Google App Engine
This is Rietveld 408576698