예제 #1
0
파일: views.py 프로젝트: fing520/Lawliet
def ping():
    Cache.set('ok', 'test')
    Cache.expire('ok', 5)
예제 #2
0
파일: test.py 프로젝트: fing520/Lawliet
def ok():
    a = Cache.get('ok')
    if a:
        return a
    else:
        return 'error'