MCPcopy Create free account
hub / github.com/Cosmian/kms / insert

Method insert

crate/server_database/src/core/object_cache.rs:103–115  ·  view source on GitHub ↗

Insert or update a cached object.

(&self, uid: String, owm: ObjectWithMetadata)

Source from the content-addressed store, hash-verified

101
102 /// Insert or update a cached object.
103 pub async fn insert(&self, uid: String, owm: ObjectWithMetadata) -> DbResult<()> {
104 let fingerprint = self.fingerprinter.fingerprint(owm.object())?;
105 self.inner
106 .insert(
107 uid,
108 CachedEntry {
109 owm: Arc::new(owm),
110 fingerprint,
111 },
112 )
113 .await;
114 Ok(())
115 }
116
117 /// Insert or update a cached object from an existing `Arc`.
118 ///

Callers 15

list_accesses_Function · 0.45
retrieve_tagsMethod · 0.45
list_uids_for_tagsMethod · 0.45
extract_query_paramsFunction · 0.45
permissions_per_userMethod · 0.45
addMethod · 0.45

Calls 2

objectMethod · 0.80
fingerprintMethod · 0.45