File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
packages/client/lib/sentinel Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,10 @@ import { defineScript } from '../lua-script';
14
14
import { MATH_FUNCTION } from '../commands/FUNCTION_LOAD.spec' ;
15
15
import RedisBloomModules from '@redis/bloom' ;
16
16
import { RedisTcpSocketOptions } from '../client/socket' ;
17
+ import { SQUARE_SCRIPT } from '../client/index.spec' ;
17
18
18
19
const execAsync = promisify ( exec ) ;
19
20
20
- const SQUARE_SCRIPT = defineScript ( {
21
- SCRIPT :
22
- `local number = redis.call('GET', KEYS[1])
23
- return number * number` ,
24
- NUMBER_OF_KEYS : 1 ,
25
- FIRST_KEY_INDEX : 0 ,
26
- transformArguments ( key : string ) {
27
- return [ key ] ;
28
- } ,
29
- transformReply : undefined as unknown as ( ) => NumberReply
30
- } ) ;
31
-
32
21
/* used to ensure test environment resets to normal state
33
22
i.e.
34
23
- all redis nodes are active and are part of the topology
You can’t perform that action at this time.
0 commit comments