# -*- coding: utf-8 -*-

import web
from library.redis_cache import redis_cache

# 数据库
db_webpy = web.database(dbn = 'mysql', user = 'root', pw='baidu@123', db='webpy', pooling = False,)   # 单连接, 每次请求结束会被立即释放

# 缓存
cache_webpy = redis_cache(host = 'localhost')
56639c8cf8da079a833ae205b96d234c2559072f
<mask token>

<mask token>
db_webpy = web.database(dbn='mysql', user='root', pw='baidu@123', db=
    'webpy', pooling=False)
cache_webpy = redis_cache(host='localhost')

import web
from library.redis_cache import redis_cache
db_webpy = web.database(dbn='mysql', user='root', pw='baidu@123', db=
    'webpy', pooling=False)
cache_webpy = redis_cache(host='localhost')

# -*- coding: utf-8 -*-

import web
from library.redis_cache import redis_cache

# 数据库
db_webpy = web.database(dbn = 'mysql', user = 'root', pw='baidu@123', db='webpy', pooling = False,)   # 单连接, 每次请求结束会被立即释放

# 缓存
cache_webpy = redis_cache(host = 'localhost')