MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / clear_cache

Function clear_cache

crates/opencode-config/src/wellknown.rs:167–171  ·  view source on GitHub ↗

Clears the wellknown config cache. Useful for testing or forced refresh.

()

Source from the content-addressed store, hash-verified

165
166/// Clears the wellknown config cache. Useful for testing or forced refresh.
167pub fn clear_cache() {
168 if let Ok(mut guard) = CACHE.lock() {
169 *guard = None;
170 }
171}
172
173#[cfg(test)]
174mod tests {

Callers 2

Calls

no outgoing calls

Tested by 2