You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
stream commands + some more
This commit is contained in:
@@ -12,13 +12,13 @@ export default {
|
||||
) {
|
||||
const args = ['LPOS', key, element];
|
||||
|
||||
if (typeof options?.RANK === 'number') {
|
||||
if (options?.RANK !== undefined) {
|
||||
args.push('RANK', options.RANK.toString());
|
||||
}
|
||||
|
||||
args.push('COUNT', count.toString());
|
||||
|
||||
if (typeof options?.MAXLEN === 'number') {
|
||||
if (options?.MAXLEN !== undefined) {
|
||||
args.push('MAXLEN', options.MAXLEN.toString());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user