Share your code. Components are building blocks, you are the architect.

redis/set-data
v1.0.0
1.0.0
0.0.1
Contributors
Gravatar for undefined
bit
0
MIT
PUBLIC
1
0     DEPENDENCIES
Build: pass
BuildPass
Build Status: pass

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

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set @bit:registry https://node.bitsrc.io
Use redis/set-data in your project
npm i @bit/bit.utils.redis.set-data
Copied

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.