You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-12-11 09:22:35 +03:00
Revert "fix(ts): xtrim threshold accepts string (#2828)"
This reverts commit 7d905c0027.
This commit is contained in:
committed by
GitHub
parent
7d905c0027
commit
75d62674b1
@@ -38,13 +38,6 @@ describe('XTRIM', () => {
|
|||||||
['XTRIM', 'key', 'MAXLEN', '=', '1', 'LIMIT', '1']
|
['XTRIM', 'key', 'MAXLEN', '=', '1', 'LIMIT', '1']
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('with MINID', () => {
|
|
||||||
assert.deepEqual(
|
|
||||||
XTRIM.transformArguments('key', 'MINID', '0-0'),
|
|
||||||
['XTRIM', 'key', 'MINID', '0-0']
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
testUtils.testAll('xTrim', async client => {
|
testUtils.testAll('xTrim', async client => {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
transformArguments(
|
transformArguments(
|
||||||
key: RedisArgument,
|
key: RedisArgument,
|
||||||
strategy: 'MAXLEN' | 'MINID',
|
strategy: 'MAXLEN' | 'MINID',
|
||||||
threshold: number | string,
|
threshold: number,
|
||||||
options?: XTrimOptions
|
options?: XTrimOptions
|
||||||
) {
|
) {
|
||||||
const args = ['XTRIM', key, strategy];
|
const args = ['XTRIM', key, strategy];
|
||||||
|
|||||||
Reference in New Issue
Block a user