summaryrefslogtreecommitdiff
path: root/cli/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cli/cache')
-rw-r--r--cli/cache/code_cache.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/cache/code_cache.rs b/cli/cache/code_cache.rs
index abcd0d46a..b1d9ae757 100644
--- a/cli/cache/code_cache.rs
+++ b/cli/cache/code_cache.rs
@@ -1,10 +1,14 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+use std::sync::Arc;
+
use deno_ast::ModuleSpecifier;
use deno_core::error::AnyError;
use deno_runtime::code_cache;
use deno_runtime::deno_webstorage::rusqlite::params;
+use crate::worker::CliCodeCache;
+
use super::cache_db::CacheDB;
use super::cache_db::CacheDBConfiguration;
use super::cache_db::CacheDBHash;
@@ -82,6 +86,12 @@ impl CodeCache {
}
}
+impl CliCodeCache for CodeCache {
+ fn as_code_cache(self: Arc<Self>) -> Arc<dyn code_cache::CodeCache> {
+ self
+ }
+}
+
impl code_cache::CodeCache for CodeCache {
fn get_sync(
&self,