MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / ArcDiskCache

Class ArcDiskCache

arc-disk-cache/src/lib.rs:219–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218#[derive(Clone)]
219pub struct ArcDiskCache<K, D>
220where
221 K: Serialize
222 + DeserializeOwned
223 + AsRef<Path>
224 + Hash
225 + Eq
226 + Ord
227 + Clone
228 + Debug
229 + Sync
230 + Send
231 + 'static,
232 D: Serialize + DeserializeOwned + Clone + Debug + Sync + Send + 'static,
233{
234 cache: Arc<ARCache<K, CacheObj<K, D>>>,
235 stats: Arc<CowCell<CacheStats>>,
236 running: Arc<AtomicBool>,
237 durable_fs: bool,
238 u8_to_path: Vec<PathBuf>,
239 temp_path: PathBuf,
240 content_dir: PathBuf,
241}
242
243impl<K, D> Drop for ArcDiskCache<K, D>
244where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected