- 更新
2024-04-08
- 作者
@voluntas
- バージョン
2024.1
- URL
概要
2024-04-08
@voluntas
2024.1
概要
# -*- coding: utf-8 -*- | |
class SimpleOption(object): | |
NOTHING = False | |
SOME = True | |
def __init__(self, is_some, value=None): |
import functools | |
import logging | |
from google.appengine.api import memcache | |
def cached(time=1200): | |
""" | |
Decorator that caches the result of a method for the specified time in seconds. | |
Use it as: | |