mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
feat: server forge 子命令,四张共享 forge 状态查询加三行动旗标
This commit is contained in:
@@ -87,6 +87,11 @@ impl CodeForge {
|
||||
Ok(module)
|
||||
}
|
||||
|
||||
/// 清空全部缓存模块(LRU 复位,后续 eval 重编译)。
|
||||
pub fn clear(&self) {
|
||||
self.map.lock().unwrap().clear();
|
||||
}
|
||||
|
||||
/// 当前缓存条目数。
|
||||
pub fn len(&self) -> usize {
|
||||
self.map.lock().unwrap().len()
|
||||
|
||||
Reference in New Issue
Block a user