You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-03 04:01:40 +03:00
22 lines
477 B
TypeScript
22 lines
477 B
TypeScript
import { TimeSeriesAggregationType } from '.';
|
|
|
|
export const FIRST_KEY_INDEX = 1;
|
|
|
|
export function transformArguments(
|
|
sourceKey: string,
|
|
destinationKey: string,
|
|
aggregationType: TimeSeriesAggregationType,
|
|
timeBucket: number
|
|
): Array<string> {
|
|
return [
|
|
'TS.CREATERULE',
|
|
sourceKey,
|
|
destinationKey,
|
|
'AGGREGATION',
|
|
aggregationType,
|
|
timeBucket.toString()
|
|
];
|
|
}
|
|
|
|
export declare function transformReply(): 'OK';
|