feat: server forge 子命令,四张共享 forge 状态查询加三行动旗标

This commit is contained in:
2026-10-06 18:46:44 +00:00
parent 83e41e10ab
commit e199ebeaa1
12 changed files with 635 additions and 54 deletions
+5
View File
@@ -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()