1.0.3 • Published 4 years ago

async-redis-client v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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());
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago