You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
add support for List commands, fix some Sorted Set commands, add some cluster commands, spawn cluster for testing, add support for command options in cluster, and more
This commit is contained in:
14
lib/commands/LTRIM.ts
Normal file
14
lib/commands/LTRIM.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { transformReplyString } from './generic-transformers';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
export function transformArguments(key: string, start: number, stop: number): Array<string> {
|
||||
return [
|
||||
'LTRIM',
|
||||
key,
|
||||
start.toString(),
|
||||
stop.toString()
|
||||
]
|
||||
}
|
||||
|
||||
export const transformReply = transformReplyString;
|
Reference in New Issue
Block a user