RODY/app/exts.py
552068321@qq.com 6f7de660aa first commit
2022-11-04 17:37:08 +08:00

13 lines
322 B
Python

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)