get-data

v1.0.0arrow_drop_down
v1.0.0
v0.0.1
STATUS
Passing
DOWNLOADS
26
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
513 B
Returns a Promise resolved with the values associated with the specified fields in the hash stored at key.
2 contributors
Install get-data as a package?
Copied
npm i @bit/bit.utils.redis.get-data
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right
getData (
cache:RedisClient,
key:string,
fields:(string | Array.<string>)
) : Promise<Array.<string>>

Returns a Promise resolved with the values associated with the specified fields in the hash stored at key.

Arguments
cache: RedisClient
key: string

hash stored at key

fields: (string | Array.<string>)
Returns
Promise<Array.<string>>

list of values associated with the given fields, in the same order as they are requested.

Help and resources