2.0.0 • Published 4 years ago

async-redis v2.0.0

Weekly downloads
41,610
License
MIT
Repository
github
Last release
4 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-sdkxepelin-api-coresexpressscalable-roblox-long-pollingreshuffle-redis-connectorredis-agenttelegram-xpstable-redissdk-security-bankingsdi-pg-pool-handlerroutecap-utilsrollup-redis-cachevesilddialogcraftgpt-libmhymlfuel-connect-redis-sdkmlfuel-connect-redis-sdk-testlongtraillog-debuggerjnw-nodejs-commoningo-api-coregrain-harvest-pipelinehemmeligmsdl-clinpc-gptopus-lab-connect-redis-sdkportarapopoo-web3-apiomni-api-core-yclrabbinucleicnode-redis-instancenolangjsrbtree_infraredis-cloudredis-lrukrewardle-dependency-layerstampede-cachestampede-portalstampede-serverstreaming-apistockyard-serversimple-cache-clientsmart-redisskin-jobstuain-creditstimecapsuled@aindev/connect-redis-sdk@apifie/node-microservice@ascent24/distributedqueuexz-lppx-backend-dbxz-lppx-commonyakuza0zenith-framework@grid-rbx/rlp@gostarehnegar/tomcat@larksuiteoapi/simple@myscodecenter/mysdbsdk@nebulario/microservice-blog-graph@nebulario/microservice-graph-common@nebulario/linker-graph-common@nebulario/tuto-cache@nebulario/tuto-quiz-graph@nebulario/tuto-reward-graph@node-kits/redis@moblybr/node-multi-redis-manager@moblybr/node-redis-manager@kokoye2007/microservice-blueprint-nodejs@officialquack/alpha@recordot/cache@socket.tech/dl-common@soluzioni-futura/redis-component@reshuffle/redis-connector@donit/donit-core@prima/cache@prima/queue@rbtree.io/rbtree-infra-serveredaoeeasy-redis-connectordynamic-storageselewis-nestjs-middlewareelewis-nestjs-securityetilsexpress-jwt-enhancedexpress-idempotency-cache@twobrains/yodl@zingle/redis-queue@zalastax/nolb-async-r
2.0.0

4 years ago

1.1.7

6 years ago

1.1.5

6 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago