Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitcoin-api/do-redis-request
Do Redis Request - Redis Helper Function
https://github.com/bitcoin-api/do-redis-request
Last synced: 2 days ago
JSON representation
Do Redis Request - Redis Helper Function
- Host: GitHub
- URL: https://github.com/bitcoin-api/do-redis-request
- Owner: bitcoin-api
- License: bsd-3-clause
- Created: 2020-07-21T23:21:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-27T04:58:44.000Z (over 4 years ago)
- Last Synced: 2024-11-07T12:07:29.194Z (9 days ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: funding.yml
- License: LICENSE
Awesome Lists containing this project
README
# do-redis-request
[![npm version](https://badge.fury.io/js/do-redis-request.svg)](https://badge.fury.io/js/do-redis-request)
do-redis-request - Do Redis Request
## About
Redis Helper Function, useful in combination with [get-redis-client](https://github.com/bitcoin-api/get-redis-client) and [drf](https://github.com/bitcoin-api/drf).
## Installation
```
npm install do-redis-request --save
```## Example
```.js
'use strict';const getRedisClient = require( 'get-redis-client' );
const doRedisRequest = require( 'do-redis-request' );(async () => {
const redisClient = getRedisClient();
const value = await doRedisRequest({
client: redisClient,
command: 'get',
redisArguments: [ 'redisKey' ],
});console.log( 'results:', value );
redisClient.quit();
})();
```