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

Side by Side Diff: appengine/findit_mock/libs/cache/cache.py

Issue 2447253002: [Findit & Predator] Code reorg of Findit. (Closed)
Patch Set: Clean up. Created 4 years, 1 month 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 import functools
Sharu Jiang 2016/11/04 18:39:46 I think some part of cache is gae related, like *M
stgao 2016/11/08 18:53:32 Yes, that's the plan.
2
3 def Cached():
4 def Decorator(func):
5 """Decorator to cache a function's results."""
6 @functools.wraps(func)
7 def Wrapped(*args, **kwargs):
8 # TODO: cache result.
9 return func(*args, **kwargs)
10
11 return Wrapped
12
13 return Decorator
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698