MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / invalidate

Method invalidate

src/secrets/src/cache.rs:146–152  ·  view source on GitHub ↗

Invalidates a single cached secret, returning whether the cache contained it.

(&self, id: CatalogItemId)

Source from the content-addressed store, hash-verified

144
145 /// Invalidates a single cached secret, returning whether the cache contained it.
146 pub fn invalidate(&self, id: CatalogItemId) -> bool {
147 self.cache
148 .write()
149 .expect("CachingSecretsReader panicked!")
150 .remove(&id)
151 .is_some()
152 }
153}
154
155#[async_trait]

Calls 4

is_someMethod · 0.80
expectMethod · 0.80
removeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected