easy-redis-connector
v1.0.8
Published
EasyRedisConnector is a Node.js library that provides a convenient way to connect to Redis and perform common operations like getting, setting, updating, and removing keys.
Downloads
95
Maintainers
Readme
EasyRedisConnector
EasyRedisConnector is a Node.js library that provides a convenient way to connect to Redis and perform common operations like getting, setting, updating, and removing keys.
Installation
npm install easy-redis-connector
or
yarn add easy-redis-connector
Usage
const EasyRedisConnector = require('easy-redis-connector');
// Create an instance of EasyRedisConnector
const options = {
// Redis connection options
// The settings that the async-redis library requests for the connection.
}
const redisConnector = new EasyRedisConnector(options)
// Get
await redisConnector.get('myKey')
// Set
await redisConnector.set('myKey', { name: 'Easy Redis Connector' })
// Update
await redisConnector.update('myKey', { name: 'Easy Redis Connector 2' })
// Delete
await redisConnector.remove('myKey')
Good Works.