Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tpkn/rediska

Redis commands in async format
https://github.com/tpkn/rediska

Last synced: 6 days ago
JSON representation

Redis commands in async format

Awesome Lists containing this project

README

        

# Rediska [![npm Package](https://img.shields.io/npm/v/rediska.svg)](https://www.npmjs.org/package/rediska)
Redis commands in async format

## API

```javascript
const rediska = require('rediska')([client]);
```

### client
**Type**: _Object_
Custom redis client instance

### @return
**Type**: _Object_
```javascript
{ redis, client, rediska }
```

## Usage
```javascript
const { redis, client, rediska } = require('rediska')();

(async() => {

let ping = await rediska.ping();
// => PONG

await rediska.set('ping', `${ping}: ${Date.now()}`);
// => OK

await rediska.get('ping');
// => PONG: 1594743040071

})();
```

## Changelog
#### v1.1.0:
- added uppercase alias for each command