Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tpkn/rediska
- Owner: tpkn
- License: mit
- Created: 2020-07-14T16:30:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-21T15:30:14.000Z (over 4 years ago)
- Last Synced: 2025-01-06T10:44:04.886Z (14 days ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
// => PONGawait rediska.set('ping', `${ping}: ${Date.now()}`);
// => OKawait rediska.get('ping');
// => PONG: 1594743040071})();
```## Changelog
#### v1.1.0:
- added uppercase alias for each command