realms-wiki/realms/lib/services.py

10 lines
275 B
Python
Raw Normal View History

2013-10-05 00:42:45 +03:00
import rethinkdb as rdb
import redis
2013-11-08 20:20:40 +02:00
from realms import config
2013-10-05 00:42:45 +03:00
# Default DB connection
db = rdb.connect(config.db['host'], config.db['port'], db=config.db['dbname'])
# Default Cache connection
cache = redis.StrictRedis(host=config.cache['host'], port=config.cache['port'])