feat(redis): search keys by value
This commit is contained in:
1 parent
da00405e10
commit
ea5e15612f
14 files changed
+260
-12
No files matched your search
@@ -24,6 +24,19 @@ pub async fn redis_scan_keys(
|
||||
dbx_core::redis_ops::redis_scan_keys_core(&state, &connection_id, db, cursor, &pattern, count).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn redis_scan_values(
|
||||
state: State<'_, Arc<AppState>>,
|
||||
connection_id: String,
|
||||
db: u32,
|
||||
cursor: u64,
|
||||
pattern: String,
|
||||
query: String,
|
||||
count: usize,
|
||||
) -> Result<RedisScanResult, String> {
|
||||
dbx_core::redis_ops::redis_scan_values_core(&state, &connection_id, db, cursor, &pattern, &query, count).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn redis_get_value(
|
||||
state: State<'_, Arc<AppState>>,
|
||||
|
||||
Reference in new issue
Block a user