1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00

stream commands + some more

This commit is contained in:
Leibale
2023-06-28 11:40:46 -04:00
parent 1bda2400e5
commit ea2d9d2a77
54 changed files with 1513 additions and 1455 deletions

View File

@@ -2,6 +2,7 @@ import { NumberReply, Command, RedisArgument } from '../RESP/types';
export interface XTrimOptions {
strategyModifier?: '=' | '~';
/** added in 6.2 */
LIMIT?: number;
}
@@ -12,7 +13,8 @@ export default {
key: RedisArgument,
strategy: 'MAXLEN' | 'MINID',
threshold: number,
options?: XTrimOptions) {
options?: XTrimOptions
) {
const args = ['XTRIM', key, strategy];
if (options?.strategyModifier) {