Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
imperugo committed Jun 11, 2020
1 parent 14ecf3c commit 69490f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- General information -->
<PropertyGroup>
<Authors>Ugo Lattanzi</Authors>
<VersionPrefix>6.2.1</VersionPrefix>
<VersionPrefix>6.2.2</VersionPrefix>
<!-- <VersionSuffix>pre</VersionSuffix> -->
<TargetFrameworks>netstandard2.0;net461;net472;netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
<IncludeSource>True</IncludeSource>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,13 @@ public async Task<IEnumerable<string>> SearchKeysAsync(string pattern)

foreach (var server in servers)
{
var nextCursor = 0;
long nextCursor = 0;
do
{
var redisResult = await Database.ExecuteAsync("SCAN", nextCursor.ToString(), "MATCH", pattern, "COUNT", "1000").ConfigureAwait(false);
var innerResult = (RedisResult[])redisResult;

nextCursor = int.Parse((string)innerResult[0]);
nextCursor = long.Parse((string)innerResult[0]);

var resultLines = ((string[])innerResult[1]).ToArray();
keys.UnionWith(resultLines);
Expand Down

0 comments on commit 69490f6

Please sign in to comment.