2.0.0 • Published 3 years ago

async-redis v2.0.0

Weekly downloads
41,610
License
MIT
Repository
github
Last release
3 years ago

Async Redis

Build Status npm npm license Coverage Status Maintainability Known Vulnerabilities

Light weight wrapper over the node_redis library with first class async & promise support.

Installation

To install the stable version:

npm install --save async-redis

Usage Example

Creating Connection

const asyncRedis = require("async-redis");
const client = asyncRedis.createClient();

client.on("error", function (err) {
    console.log("Error " + err);
});

const asyncBlock = async () => {
  await client.set("string key", "string val");
  const value = await client.get("string key");
  console.log(value);
  await client.flushall("string key");
};

Decorating Existing Connections

const redis = require("redis");
const client = redis.createClient();
const asyncRedis = require("async-redis");
const asyncRedisClient = asyncRedis.decorate(client);

API Information

This library does very little modification to the api of node_redis. It simply appends a promise resolving/rejecting callback for every command.

For information on redis commands and configuration visit node_redis docs.

License

MIT

@prima/prima-cachegadgeteersky-search-apienter-name-heremarkable-middle-layer-sku-apiweo-redis-cloudomni-api-core@omni-qa/api-core@service-exchange/samplemlfuel-connect-redis-sdk-tmp@everything-registry/sub-chunk-1175ycl-api-corevht-automations-sdkxz-lppx-backend-dbxz-lppx-commonxepelin-api-coreyakuza0timecapsuledtuain-creditsvesildtelegram-xpopus-lab-connect-redis-sdkcommon-client-utilsclimate-web-sdkrabbidoso-noderedis-cloudreshuffle-redis-connectorredis-lrukredis-agentrewardle-dependency-layerrollup-redis-cachesdk-security-bankingsdi-pg-pool-handlerscalable-roblox-long-pollingroutecap-utilssexpresssimple-cache-clientskin-jobssmart-redisstampede-cachestampede-portalstampede-serverstable-redisstreaming-apibotxlib-nodestockyard-server@larksuiteoapi/simplegrain-harvest-pipeline@moblybr/node-multi-redis-manager@moblybr/node-redis-managerzenith-frameworketilsexpress-jwt-enhancedexpress-idempotency-cache@gostarehnegar/tomcat@grid-rbx/rlpdialogcraftgpt-libawesome-frameworkas1-express-redis-cachebackend-common_librarybackend-rest-api@zalastax/nolb-async-rnolangjsnucleicmsdl-cli@apifie/node-microservice@ascent24/distributedqueueasync-redis-mockasync-redis-sharedcache-kanode-redis-instancenpc-gpt@zingle/redis-queue@aindev/connect-redis-sdklongtraillog-debuggeranear-js-apimhymlfuel-connect-redis-sdkmlfuel-connect-redis-sdk-testportaracvweiss-baseomni-api-core-ycl@donit/donit-corepopoo-web3-apicymaple-corecymaple-plugindima-backendrbtree_infracorcentric-api-coregame-scout-commonfofxfundamen@kokoye2007/microservice-blueprint-nodejsfxmgr@officialquack/alpha@rbtree.io/rbtree-infra-server@recordot/cache@myscodecenter/mysdbsdk
2.0.0

3 years ago

1.1.7

5 years ago

1.1.5

5 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

7 years ago