Open adamijak opened 1 year ago
The handling of IScanningCursor
here is not meant to act as discreet fetch operations i.e. individual calls to SCAN
; we always hide those details. Instead, the intent is that if you need to interrupt the scan, you can capture the current state via IScannignCursor
, and use those numbers as the optional arguments to a later call to Keys[Async]
, and you should resume from where you were. Does that make sense?
I guess if you really really want that, you could use Execute[Async]
?
I do use ExecuteAsync now, since it is only solution I could come out with. But I would really prefer If there was Scan[Async] command predefined. For the sake of consistency with Redis commands. Keys[Async] could then use Scan[Async] command under the hood and return IAsyncEnumerable
Btw the reason why I do this, is because I pass the cursor between different server-less functions. So basically I do not have control over the topmost while loop.
Hi, I am trying to process keys on server in this batch pattern.
How can I achieve this behaviour using IServer and IScanningCursor? This does not work.