realms-wiki/realms/services.py
2013-10-04 16:42:45 -05:00

11 lines
264 B
Python

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