There was an error while loading. Please reload this page.
1 parent 76fa681 commit f348f08Copy full SHA for f348f08
1 file changed
rust/src/scripts.rs
@@ -9,6 +9,7 @@ use crate::error::Error;
9
#[derive(Debug, Clone)]
10
pub struct LuaScript {
11
/// The script name (e.g., "addStandardJob").
12
+ #[allow(dead_code)]
13
pub name: String,
14
/// Number of KEYS arguments the script expects.
15
pub num_keys: usize,
@@ -100,11 +101,6 @@ impl ScriptRegistry {
100
101
self.scripts.get(name)
102
}
103
- /// Get all script names.
104
- pub fn names(&self) -> Vec<&str> {
105
- self.scripts.keys().map(|s| s.as_str()).collect()
106
- }
107
-
108
/// Ensure the named scripts are loaded into Redis using SCRIPT LOAD.
109
///
110
/// This is intended for pipelined operations where EVALSHA must succeed
0 commit comments