1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::description::PkgJSON;
use crate::fs::CachedFS;
use dashmap::DashMap;
use std::sync::Arc;
#[derive(Debug, Default)]
pub struct Cache {
pub fs: CachedFS,
pub pkg_json: CachedPkgJSON,
}
type Content = String;
type CachedPkgJSON = DashMap<Content, Arc<PkgJSON>>;