From f3609d80ac8e823f4f1f96ad63df4615c0aeee0b Mon Sep 17 00:00:00 2001 From: shacharPash Date: Tue, 23 Aug 2022 17:38:02 +0300 Subject: [PATCH] add COMPRESSION keyword to TDIGEST.CREATE --- src/NRedisStack/Tdigest/TdigestCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NRedisStack/Tdigest/TdigestCommands.cs b/src/NRedisStack/Tdigest/TdigestCommands.cs index 27b4dcde..22506356 100644 --- a/src/NRedisStack/Tdigest/TdigestCommands.cs +++ b/src/NRedisStack/Tdigest/TdigestCommands.cs @@ -123,7 +123,7 @@ public async Task CDFAsync(RedisKey key, double value) /// public bool Create(RedisKey key, long compression = 100) { - return ResponseParser.OKtoBoolean(_db.Execute(TDIGEST.CREATE, key, compression)); + return ResponseParser.OKtoBoolean(_db.Execute(TDIGEST.CREATE, key, TdigestArgs.COMPRESSION, compression)); } /// @@ -135,7 +135,7 @@ public bool Create(RedisKey key, long compression = 100) /// public async Task CreateAsync(RedisKey key, long compression = 100) { - return ResponseParser.OKtoBoolean(await _db.ExecuteAsync(TDIGEST.CREATE, key, compression)); + return ResponseParser.OKtoBoolean(await _db.ExecuteAsync(TDIGEST.CREATE, key, TdigestArgs.COMPRESSION, compression)); } ///