RODY/app/exts.py

13 lines
322 B
Python
Raw Normal View History

2022-11-04 17:37:08 +08:00
import redis
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_marshmallow import Marshmallow
db = SQLAlchemy()
migrate = Migrate()
ma = Marshmallow()
pool = redis.ConnectionPool(host='localhost', password='sdust2020', port=6379, db=8)
redisClient = redis.Redis(connection_pool=pool)