MCPcopy Create free account
hub / github.com/1jehuang/jcode / embedder_cache

Function embedder_cache

crates/jcode-base/src/embedding.rs:74–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74fn embedder_cache() -> &'static Mutex<EmbedderCache> {
75 EMBEDDER_CACHE.get_or_init(|| Mutex::new(EmbedderCache::default()))
76}
77
78fn saturating_u64_from_u128(value: u128) -> u64 {
79 if value > u64::MAX as u128 {

Callers 6

get_embedderFunction · 0.85
embedFunction · 0.85
maybe_unload_if_idleFunction · 0.85
unload_nowFunction · 0.85
statsFunction · 0.85

Calls

no outgoing calls

Tested by 1