easy-redis-connector

1.0.8 • Public • Published

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.

Package Sidebar

Install

npm i easy-redis-connector

Weekly Downloads

130

Version

1.0.8

License

MIT

Unpacked Size

2.07 kB

Total Files

3

Last publish

Collaborators

  • ugurcanalyuz