rudeshark.net/src/db/redis.ts
2019-06-09 23:07:32 +09:00

13 lines
238 B
TypeScript

import * as redis from 'redis';
import config from '../config';
export default redis.createClient(
config.redis.port,
config.redis.host,
{
password: config.redis.pass,
prefix: config.redis.prefix,
db: config.redis.db || 0
}
);