pub async fn feed_many<K, I>(&self, values: I)
    where
        K: Send + Sync + Hash + Eq + Clone + 'static,
        I: IntoIterator<Item = (K, T::Value)>,
        T: Loader<K>,
    {
        let tid = TypeId::of::<K>();
        let mut requests = self.requests.lock().unwrap();
        let typed_requests = requests
            .entry(tid)
            .or_insert_with(|| Box::new(Requests::<K, T>::new(&self.cache_factory)))
            .downcast_mut::<Requests<K, T>>()
            .unwrap();
        for (key, value) in values {
            typed_requests
                .cache_storage
                .insert(Cow::Owned(key), Cow::Owned(value));
        }
    }
/// Feed some data into the cache.
///
/// **NOTE: If the cache type is [NoCache], this function will not take effect. **
Feed some data into the cache.
NOTE: If the cache type is [NoCache], this function will not take effect.
Feed some data into the cache . NOTE : If the cache type is [ NoCache ] this function will not take effect .
pub async fn feed_many<K, I>(&self, values: I)
    where
        K: Send + Sync + Hash + Eq + Clone + 'static,
        I: IntoIterator<Item = (K, T::Value)>,
        T: Loader<K>,
    {
        let tid = TypeId::of::<K>();
        let mut requests = self.requests.lock().unwrap();
        let typed_requests = requests
            .entry(tid)
            .or_insert_with(|| Box::new(Requests::<K, T>::new(&self.cache_factory)))
            .downcast_mut::<Requests<K, T>>()
            .unwrap();
        for (key, value) in values {
            typed_requests
                .cache_storage
                .insert(Cow::Owned(key), Cow::Owned(value));
        }
    }
pub async fn feed_many < K , I > ( & self , values : I ) where K : Send + Sync + Hash + Eq + Clone + ' static , I : IntoIterator < Item = ( K , T :: Value ) > , T : Loader < K > , { let tid = TypeId :: of :: < K > ( ) ; let mut requests = self . requests . lock ( ) . unwrap ( ) ; let typed_requests = requests . entry ( tid ) . or_insert_with ( | | Box :: new ( Requests :: < K , T > :: new ( & self . cache_factory ) ) ) . downcast_mut :: < Requests < K , T > > ( ) . unwrap ( ) ; for ( key , value ) in values { typed_requests . cache_storage . insert ( Cow :: Owned ( key ) , Cow :: Owned ( value ) ) ; } }
Feed some data into the cache.
Feed some data into the cache .
&self
values
I
&self
values
I