StackExchange / StackExchange/StackExchange.Redis

why HashScan not work?

Open
#1,873 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.2k
Forks
1.6k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

HashScan not work . SetScan,SortedSetScan,not work too.

What libraries does hashscan depend on? Maybe i didn't import

all lib ,i imported. version ,from nuget

.net50\StackExchange.Redis=2.2.50.36290
.net50\Pipelines.Sockets.Unofficial.dll=2.2.0.45337
.net50\System.IO.Pipelines.dll=5.0.20.51904

powershell source
$hash = [StackExchange.Redis.RedisKey]"hash2"
$patt = [StackExchange.Redis.RedisValue]"a*"
$page = [int]50
$flag = [StackExchange.Redis.CommandFlags]::None
$Global:db1.HashScan($hash,$patt,$page,$flag)
MethodException: Cannot find an overload for "HashScan" and the argument count: "4".

$Global:db1.HashScan

OverloadDefinitions
-------------------
System.Collections.Generic.IEnumerable[StackExchange.Redis.HashEntry] IDatabase.HashScan(StackExchange.Redis.RedisKey key, StackExchange.R
edis.RedisValue pattern, int pageSize, StackExchange.Redis.CommandFlags flags)
System.Collections.Generic.IEnumerable[StackExchange.Redis.HashEntry] IDatabase.HashScan(StackExchange.Redis.RedisKey key, StackExchange.R
edis.RedisValue pattern, int pageSize, long cursor, int pageOffset, StackExchange.Redis.CommandFlags flags)

[string]$Global:db1.HashGetall($hash)
aaa_1_2: b c_2_9: aaaa

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the PowerShell calls to IDatabase.HashScan, SetScan, and SortedSetScan using the versions listed in the issue, then compare the invocation with the shown overload definitions. Done would require a confirmed explanation of the overload failure or a clearly scoped client defect, but the issue does not state an expected change or name a test or source file.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell, redis
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.