Authenticate using registry - part 5

This commit is contained in:
mdecimus
2026-02-08 19:36:26 +01:00
parent 298b5bc23f
commit 2dc0776109
144 changed files with 1828 additions and 1072 deletions

View File

@@ -53,6 +53,14 @@ impl<K: Eq + Hash + CacheItemWeight, V: Clone + CacheItemWeight> Cache<K, V> {
self.0.get(key)
}
#[inline(always)]
pub fn peek<Q>(&self, key: &Q) -> Option<V>
where
Q: Hash + Equivalent<K> + ?Sized,
{
self.0.peek(key)
}
#[inline(always)]
pub async fn get_value_or_guard_async<'a, Q>(
&'a self,