Getting Started

A guide to quickredis-db

Installing Quick Redis

To install Quick Redis run the following command in your project folder

npm install quickredis-db

Example of Quick Redis

// Creating the redis client
const redis = require('quickredis-db')
const client = redis.createClient()

client.once('ready', () => console.log('Connected to database'))

// Setting a value
client.set('foo', 'bar').then(console.log)// 'bar'

// Reading a value
client.get('foo').then(console.log) // 'bar'

Last updated