Skip to content

Commit

Permalink
use SortedSetLength for zcount
Browse files Browse the repository at this point in the history
  • Loading branch information
huoshan12345 committed Dec 25, 2024
1 parent c9cafa1 commit 37089fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public long ZCount(string cacheKey, double min, double max)
{
ArgumentCheck.NotNullOrWhiteSpace(cacheKey, nameof(cacheKey));

var len = _cache.SortedSetLengthByValue(cacheKey, min, max);
var len = _cache.SortedSetLength(cacheKey, min, max);
return len;
}

Expand Down Expand Up @@ -166,7 +166,7 @@ public async Task<long> ZCountAsync(string cacheKey, double min, double max)
{
ArgumentCheck.NotNullOrWhiteSpace(cacheKey, nameof(cacheKey));

var len = await _cache.SortedSetLengthByValueAsync(cacheKey, min, max);
var len = await _cache.SortedSetLengthAsync(cacheKey, min, max);
return len;
}

Expand Down

0 comments on commit 37089fe

Please sign in to comment.