cave/store: add COUNT 10000 to scan()

This commit is contained in:
Astro 2022-11-18 17:44:01 +01:00
parent 3ccc6278d9
commit 90e5694202

View File

@ -265,7 +265,8 @@ impl Store {
pub async fn scan(&mut self, pattern: &str) -> Result<impl Stream<Item = String> + '_, RedisError> {
let mut cmd = redis::cmd("SCAN");
cmd.cursor_arg(0)
.arg("MATCH").arg(pattern);
.arg("MATCH").arg(pattern)
.arg("COUNT").arg(10000);
let iter = cmd.iter_async::<String>(self)
.await?;