2019-08-21 15:33:54 +05:30
|
|
|
import * as redis from 'redis';
|
|
|
|
var REDIS_URL = process.env.REDIS_URL;
|
2019-08-14 16:25:23 +05:30
|
|
|
export namespace Global {
|
2019-09-11 12:02:48 +02:00
|
|
|
export var network: string = 'Testnet';
|
2019-08-21 15:33:54 +05:30
|
|
|
// connect to Redis
|
|
|
|
export var client = redis.createClient(REDIS_URL);
|
2019-09-11 12:02:48 +02:00
|
|
|
}
|