10 lines
275 B
Python
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']) |