NodeRedis/node-redis

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

Summary

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

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

    parser.push('SORT_RO');
    parseSortArguments(...args);
  },
  transformReply: SORT.transformReply
} as const satisfies Command;