rm cache.py, no longer needed

master
Fox Wilson 2015-11-08 03:20:13 -05:00
parent 490d18c7c8
commit 3e2590090d
1 changed files with 0 additions and 13 deletions

View File

@ -1,13 +0,0 @@
from app import app
from flask import g
import redis
@app.before_request
def before_request():
g.redis = redis.StrictRedis(host='localhost', port=6379, db=0)
@app.teardown_request
def teardown_request(exc):
cache = getattr(g, 'redis', None)
if cache is not None:
cache.connection_pool.close()