redis/set-data
v0.0.1
0.0.1
Collaborators
Gravatar for undefined
0
MIT
PUBLIC
0
0     DEPENDENCIES
BuildPass

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

Use redis/set-data in your project
npm i @bit/bit.utils.redis.set-data

setData (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.