Trait deno_cache_dir::DenoCacheEnv
source · pub trait DenoCacheEnv: Send + Sync + Debug + Clone {
// Required methods
fn read_file_bytes(&self, path: &Path) -> Result<Option<Vec<u8>>>;
fn atomic_write_file(&self, path: &Path, bytes: &[u8]) -> Result<()>;
fn modified(&self, path: &Path) -> Result<Option<SystemTime>>;
fn is_file(&self, path: &Path) -> bool;
fn time_now(&self) -> SystemTime;
}