You've already forked node-redis
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user