realms-wiki/realms/services.py

11 lines
264 B
Python
Raw Normal View History

2013-10-05 00:42:45 +03:00
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'])