UNPKG

@tanndev/maelstrom

Version:

Rules and resources for Maelstrom RPG.

11 lines (9 loc) 310 B
redis = require('redis'); const {promisify} = require('util'); const client = redis.createClient(process.env.REDIS_URL); module.exports = { ...client, getAsync: promisify(client.get).bind(client), setAsync: promisify(client.set).bind(client), keysAsync: promisify(client.keys).bind(client) };