const redis = require('redis');
const client = redis.createClient();
client.on('error', (err) => console.log('Redis Client Error', err));
client.on('connect', () => console.log('Redis Client Connected'));
client.connect();
client.get('key').then((res) => {
console.log('Get key value : ', res);
client.quit();
});
// Redis commands syntex
await client.SET('key', 'field', 'value');
await client.GET('key');