realms-wiki/realms/lib/services.py

9 lines
264 B
Python
Raw Normal View History

2013-10-05 00:42:45 +03:00
import redis
2013-11-08 20:20:40 +02:00
from realms import config
2013-12-03 01:50:19 +02:00
from sqlalchemy import create_engine
2013-10-05 00:42:45 +03:00
# Default DB connection
2013-12-03 01:50:19 +02:00
db = create_engine(config.DB_URI, encoding='utf8', echo=True)
2013-10-05 00:42:45 +03:00
# Default Cache connection
2013-12-03 01:50:19 +02:00
cache = redis.StrictRedis(host=config.REDIS_HOST, port=config.REDIS_PORT)