All Projects → moaxaca → Async Redis

moaxaca / Async Redis

Licence: other
First class async & promise support for redis.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Async Redis

Mobc
A generic connection pool for Rust with async/await support
Stars: ✭ 141 (+10.16%)
Mutual labels:  async, database, redis
Cs Books
超过1000本的计算机经典书籍、个人笔记资料以及本人在各平台发表文章中所涉及的资源等。书籍资源包括C/C++、Java、Python、Go语言、数据结构与算法、操作系统、后端架构、计算机系统知识、数据库、计算机网络、设计模式、前端、汇编以及校招社招各种面经~
Stars: ✭ 1,215 (+849.22%)
Mutual labels:  database, redis
Db Tutorial
💾 db-tutorial 是一个数据库教程。
Stars: ✭ 128 (+0%)
Mutual labels:  database, redis
Hedis
Hedis can retrieve data from **ANY** database directly via Redis
Stars: ✭ 90 (-29.69%)
Mutual labels:  database, redis
Kangaroo
SQL client and admin tool for popular databases
Stars: ✭ 127 (-0.78%)
Mutual labels:  database, redis
Tidis
Distributed transactional NoSQL database, Redis protocol compatible using tikv as backend
Stars: ✭ 1,182 (+823.44%)
Mutual labels:  database, redis
Tornadis
async minimal redis client for tornado ioloop designed for performances (use C hiredis parser)
Stars: ✭ 126 (-1.56%)
Mutual labels:  async, redis
Rq
Simple job queues for Python
Stars: ✭ 8,065 (+6200.78%)
Mutual labels:  async, redis
Datastore
🐹 Bloat free and flexible interface for data store and database access.
Stars: ✭ 99 (-22.66%)
Mutual labels:  async, database
Bojack
🐴 The unreliable key-value store
Stars: ✭ 101 (-21.09%)
Mutual labels:  database, redis
Fastapi Plugins
FastAPI framework plugins
Stars: ✭ 104 (-18.75%)
Mutual labels:  async, redis
Redisgo Async
RedisGo-Async is a Go client for Redis, both asynchronous and synchronous modes are supported,its API is fully compatible with redigo.
Stars: ✭ 60 (-53.12%)
Mutual labels:  async, redis
Nodbi
Document DBI connector for R
Stars: ✭ 56 (-56.25%)
Mutual labels:  database, redis
Memento
Fairly basic redis-like hashmap implementation on top of a epoll TCP server.
Stars: ✭ 74 (-42.19%)
Mutual labels:  async, redis
Docker Redis Cluster
Dockerfile for Redis Cluster (redis 3.0+)
Stars: ✭ 1,035 (+708.59%)
Mutual labels:  database, redis
Kitura Redis
Swift Redis library
Stars: ✭ 84 (-34.37%)
Mutual labels:  database, redis
Tedis
redis client with typescript and esnext for nodejs
Stars: ✭ 109 (-14.84%)
Mutual labels:  async, redis
Yii2 Queue
Yii2 Queue Extension. Supports DB, Redis, RabbitMQ, Beanstalk and Gearman
Stars: ✭ 977 (+663.28%)
Mutual labels:  async, redis
Spring Boot
spring-boot 项目实践总结
Stars: ✭ 989 (+672.66%)
Mutual labels:  async, redis
Zebra database
A compact, lightweight and feature-rich PHP MySQLi database wrapper
Stars: ✭ 98 (-23.44%)
Mutual labels:  database, redis

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

Typescript Support

npm install --save-dev @types/async-redis

types

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].