NodeRedis/node-redis

View on GitHub
packages/client/lib/commands/HSCAN_NOVALUES.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { BlobStringReply, Command } from '../RESP/types';
import HSCAN from './HSCAN';

export default {
  IS_READ_ONLY: true,
  parseCommand(...args: Parameters<typeof HSCAN.parseCommand>) {
    const parser = args[0];

    HSCAN.parseCommand(...args);
    parser.push('NOVALUES');
  },
  transformReply([cursor, fields]: [BlobStringReply, Array<BlobStringReply>]) {
    return {
      cursor,
      fields
    };
  }
} as const satisfies Command;