13 lines
322 B
Python
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)
|