async-redis-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

use redis offical package with bluebird.promisifyAll, and add typescript interface RedisClientAsync,

https://www.npmjs.com/package/redis

Repo

Use

for all cb method add Async to the end

import { RedisClientAsync, createClient } from 'redis-client-async';

const client: RedisClientAsync = createClient(6379, 'localhost');
const data = await client.getAsync('key')

// add getKeyWithFallback function
const date = await client.getKeyWithFallback('test', async () => new Date().toDateString());

Readme

Keywords

none

Package Sidebar

Install

npm i async-redis-client

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

69.7 kB

Total Files

8

Last publish

Collaborators

  • barnuri