You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am working on a task to purge persistent keys generated due to legacy bugs, below is main logic
...
(1) var keys = server.KeysAsync(pattern: pattern).GetAsyncEnumerator();
(2) batchExpireBuffer.Add(keys.Current.ToString());
(3) every 50 keys, BatchSetExpire(batchExpireBuffer)
Consider the total amount of keys need purge is huge (could up to 50 million),
We start enumerate from key0, suppose the collection for enumerator is {key0, key1, key2, ...}, once there are exception happened in (1) - (3), and before exception happened, we already finished key1, is there any way to get some information, so that when run next job, we can start from key2?
The text was updated successfully, but these errors were encountered:
Hi,
I am working on a task to purge persistent keys generated due to legacy bugs, below is main logic
Consider the total amount of keys need purge is huge (could up to 50 million),
We start enumerate from key0, suppose the collection for enumerator is {key0, key1, key2, ...}, once there are exception happened in (1) - (3), and before exception happened, we already finished key1, is there any way to get some information, so that when run next job, we can start from key2?
The text was updated successfully, but these errors were encountered: