Skip to content

Commit f028091

Browse files
authored
add COMPRESSION keyword to TDIGEST.CREATE (#24)
1 parent 54654be commit f028091

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NRedisStack/Tdigest/TdigestCommands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public async Task<double> CDFAsync(RedisKey key, double value)
123123
/// <remarks><seealso href="https://redis.io/commands/tdigest.create"/></remarks>
124124
public bool Create(RedisKey key, long compression = 100)
125125
{
126-
return ResponseParser.OKtoBoolean(_db.Execute(TDIGEST.CREATE, key, compression));
126+
return ResponseParser.OKtoBoolean(_db.Execute(TDIGEST.CREATE, key, TdigestArgs.COMPRESSION, compression));
127127
}
128128

129129
/// <summary>
@@ -135,7 +135,7 @@ public bool Create(RedisKey key, long compression = 100)
135135
/// <remarks><seealso href="https://redis.io/commands/tdigest.create"/></remarks>
136136
public async Task<bool> CreateAsync(RedisKey key, long compression = 100)
137137
{
138-
return ResponseParser.OKtoBoolean(await _db.ExecuteAsync(TDIGEST.CREATE, key, compression));
138+
return ResponseParser.OKtoBoolean(await _db.ExecuteAsync(TDIGEST.CREATE, key, TdigestArgs.COMPRESSION, compression));
139139
}
140140

141141
/// <summary>

0 commit comments

Comments
 (0)