Пример #1
0
def ping():
    Cache.set('ok', 'test')
    Cache.expire('ok', 5)
Пример #2
0
def ok():
    a = Cache.get('ok')
    if a:
        return a
    else:
        return 'error'