MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / invalidate

Method invalidate

packages/server/src/api/routes.rs:192–204  ·  view source on GitHub ↗
(&self, udid: &str)

Source from the content-addressed store, hash-verified

190 }
191
192 fn invalidate(&self, udid: &str) {
193 let mut generations = self
194 .generations
195 .lock()
196 .unwrap_or_else(|poisoned| poisoned.into_inner());
197 let generation = generations.entry(udid.to_owned()).or_insert(0);
198 *generation = generation.saturating_add(1);
199 let mut cache = self
200 .inner
201 .lock()
202 .unwrap_or_else(|poisoned| poisoned.into_inner());
203 cache.retain(|key, _| key.udid != udid);
204 }
205
206 fn generation(&self, udid: &str) -> u64 {
207 self.generations

Callers 7

perform_tap_payloadFunction · 0.80
run_batch_stepsFunction · 0.80
forget_lifecycle_sessionFunction · 0.80
install_app_pathFunction · 0.80
uninstall_appFunction · 0.80
simulator_actionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected