fix(redis): speed up large key scans

This commit is contained in:
t8y2 committed 2026-06-23 15:14:24 +08:00
1 parent ff79ec05ad
commit fc9f97b6b5
9 files changed
+154 -52

No files matched your search

+12 -2
View File
@@ -35,9 +35,19 @@ pub async fn redis_scan_keys_batch(
pattern: String,
count: usize,
max_iterations: usize,
include_types: Option<bool>,
) -> Result<RedisScanResult, String> {
dbx_core::redis_ops::redis_scan_keys_batch_core(&state, &connection_id, db, cursor, &pattern, count, max_iterations)
.await
dbx_core::redis_ops::redis_scan_keys_batch_core(
&state,
&connection_id,
db,
cursor,
&pattern,
count,
max_iterations,
include_types.unwrap_or(true),
)
.await
}
#[tauri::command]