realms-wiki/realms/lib/services.py
Matthew Scragg 36cf728862 reorg
2013-11-08 12:20:40 -06:00

10 lines
275 B
Python

import rethinkdb as rdb
import redis
from realms import config
# 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'])