Esempio n. 1
0
def ping():
    Cache.set('ok', 'test')
    Cache.expire('ok', 5)
Esempio n. 2
0
def ok():
    a = Cache.get('ok')
    if a:
        return a
    else:
        return 'error'