pub fn clear<K>(&self)
    where
        K: Send + Sync + Hash + Eq + Clone + 'static,
        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();
        typed_requests.cache_storage.clear();
    }
/// Clears the cache.
///
/// **NOTE: If the cache type is [NoCache], this function will not take effect. **
Clears the cache.
NOTE: If the cache type is [NoCache], this function will not take effect.
Clears the cache . NOTE : If the cache type is [ NoCache ] this function will not take effect .
pub fn clear<K>(&self)
    where
        K: Send + Sync + Hash + Eq + Clone + 'static,
        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();
        typed_requests.cache_storage.clear();
    }
pub fn clear < K > ( & self ) where K : Send + Sync + Hash + Eq + Clone + ' static , 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 ( ) ; typed_requests . cache_storage . clear ( ) ; }
Clears the cache.
Clears the cache .
&self
&self