use quick_cache::Weighter;
use super::entry::Entry;
use super::key::Key;
#[derive(Clone)]
pub(crate) struct Weight;
impl Weighter<Key, Entry> for Weight {
fn weight(&self, _key: &Key, val: &Entry) -> u64 {
match val {
#[cfg(feature = "jwks")]
Entry::Jwk(_) => 0,
_ => 1,
}
}
}