You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
@@ -128,7 +128,7 @@ export function transformTimestampArgument(timestamp: Timestamp): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function pushRetentionArgument(args: RedisCommandArguments, retention?: number): RedisCommandArguments {
|
export function pushRetentionArgument(args: RedisCommandArguments, retention?: number): RedisCommandArguments {
|
||||||
if (retention) {
|
if (retention !== undefined) {
|
||||||
args.push(
|
args.push(
|
||||||
'RETENTION',
|
'RETENTION',
|
||||||
retention.toString()
|
retention.toString()
|
||||||
@@ -144,7 +144,7 @@ export enum TimeSeriesEncoding {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function pushEncodingArgument(args: RedisCommandArguments, encoding?: TimeSeriesEncoding): RedisCommandArguments {
|
export function pushEncodingArgument(args: RedisCommandArguments, encoding?: TimeSeriesEncoding): RedisCommandArguments {
|
||||||
if (encoding) {
|
if (encoding !== undefined) {
|
||||||
args.push(
|
args.push(
|
||||||
'ENCODING',
|
'ENCODING',
|
||||||
encoding
|
encoding
|
||||||
@@ -155,7 +155,7 @@ export function pushEncodingArgument(args: RedisCommandArguments, encoding?: Tim
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function pushChunkSizeArgument(args: RedisCommandArguments, chunkSize?: number): RedisCommandArguments {
|
export function pushChunkSizeArgument(args: RedisCommandArguments, chunkSize?: number): RedisCommandArguments {
|
||||||
if (chunkSize) {
|
if (chunkSize !== undefined) {
|
||||||
args.push(
|
args.push(
|
||||||
'CHUNK_SIZE',
|
'CHUNK_SIZE',
|
||||||
chunkSize.toString()
|
chunkSize.toString()
|
||||||
@@ -166,7 +166,7 @@ export function pushChunkSizeArgument(args: RedisCommandArguments, chunkSize?: n
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function pushDuplicatePolicy(args: RedisCommandArguments, duplicatePolicy?: TimeSeriesDuplicatePolicies): RedisCommandArguments {
|
export function pushDuplicatePolicy(args: RedisCommandArguments, duplicatePolicy?: TimeSeriesDuplicatePolicies): RedisCommandArguments {
|
||||||
if (duplicatePolicy) {
|
if (duplicatePolicy !== undefined) {
|
||||||
args.push(
|
args.push(
|
||||||
'DUPLICATE_POLICY',
|
'DUPLICATE_POLICY',
|
||||||
duplicatePolicy
|
duplicatePolicy
|
||||||
|
Reference in New Issue
Block a user