Lines Matching refs:cache
202 let cache = Cache::new(); in different_keys() localVariable
206 let config_a = cache.get(&key_a).unwrap(); in different_keys()
207 let config_b = cache.get(&key_b).unwrap(); in different_keys()
208 let _config_b = cache.get(&key_b).unwrap(); in different_keys()
209 let config_c = cache.get(&key_c).unwrap(); in different_keys()
210 let _config_c = cache.get(&key_c).unwrap(); in different_keys()
222 let cache = Cache::new(); in lifetimes() localVariable
225 let config_none = cache.get(&Key { cert_path: None, max_idle_timeout: 1000 }).unwrap(); in lifetimes()
226 let config_a = cache.get(&key_a).unwrap(); in lifetimes()
227 let config_b = cache.get(&key_b).unwrap(); in lifetimes()
235 let _config_a2 = cache.get(&key_a).unwrap(); in lifetimes()
259 let _config_b2 = cache.get(&key_b).unwrap(); in lifetimes()
264 cache.garbage_collect(); in lifetimes()
265 assert_eq!(cache.state.read().unwrap().key_to_config.len(), 2); in lifetimes()