pub(crate) fn store(&mut self, script: String) -> Uuid {
        let id = Uuid::new_v4();
        let now = Instant::now();

        let limit = self.limit;
        self.scripts
            .retain(|_, &mut (_, last_accessed)| now.duration_since(last_accessed) <= limit);

        self.scripts.insert(id, (script, now));

        id
    }
/// Stores a script, evicting any that haven't been used in a
/// specified amount of time.
Stores a script, evicting any that haven't been used in a
specified amount of time.
Stores a script evicting any that haven ' t been used in a specified amount of time .
pub(crate) fn store(&mut self, script: String) -> Uuid {
        let id = Uuid::new_v4();
        let now = Instant::now();
        let limit = self.limit;
        self.scripts
            .retain(|_, &mut (_, last_accessed)| now.duration_since(last_accessed) <= limit);
        self.scripts.insert(id, (script, now));
        id
    }
pub ( crate ) fn store ( & mut self , script : String ) -> Uuid { let id = Uuid :: new_v4 ( ) ; let now = Instant :: now ( ) ; let limit = self . limit ; self . scripts . retain ( | _ , & mut ( _ , last_accessed ) | now . duration_since ( last_accessed ) <= limit ) ; self . scripts . insert ( id , ( script , now ) ) ; id }
Stores a script, evicting any that haven't been used in a
specified amount of time.
Stores a script evicting any that haven ' t been used in a specified amount of time .
&mut self
script
String