https://github.com/tpkn/rediska
Redis commands in async format
https://github.com/tpkn/rediska
Last synced: 8 months 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-21T15:30:14.000Z (almost 6 years ago)
- Last Synced: 2025-09-22T18:41:54.093Z (8 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rediska [](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