| 217 | |
| 218 | #[derive(Clone)] |
| 219 | pub struct ArcDiskCache<K, D> |
| 220 | where |
| 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 | |
| 243 | impl<K, D> Drop for ArcDiskCache<K, D> |
| 244 | where |
nothing calls this directly
no outgoing calls
no test coverage detected