pub fn remove(&self, query: &str, types: &[Type]) -> Option<Statement> {
        let key = StatementCacheKey {
            query: Cow::Owned(query.to_owned()),
            types: Cow::Owned(types.to_owned()),
        };
        let mut map = self.map.write().unwrap();
        let removed = map.remove(&key).map(|stmt| stmt.to_owned());
        if removed.is_some() {
            self.size.fetch_sub(1, Ordering::Relaxed);
        }
        removed
    }
/// Remove statement from cache
///
/// **Important:** This only removes the statement from one client
/// cache. If you want to remove a statement from all statement caches
/// you should be calling `pool.manager().statement_caches.remove()`
/// instead.
Remove statement from cache
Important:** This only removes the statement from one client
cache. If you want to remove a statement from all statement caches
you should be calling `pool.manager().statement_caches.remove()`
instead.
Remove statement from cache Important : ** This only removes the statement from one client cache . If you want to remove a statement from all statement caches you should be calling ` pool . manager () . statement_caches . remove () ` instead .
pub fn remove(&self, query: &str, types: &[Type]) -> Option<Statement> {
        let key = StatementCacheKey {
            query: Cow::Owned(query.to_owned()),
            types: Cow::Owned(types.to_owned()),
        };
        let mut map = self.map.write().unwrap();
        let removed = map.remove(&key).map(|stmt| stmt.to_owned());
        if removed.is_some() {
            self.size.fetch_sub(1, Ordering::Relaxed);
        }
        removed
    }
pub fn remove ( & self , query : & str , types : & [ Type ] ) -> Option < Statement > { let key = StatementCacheKey { query : Cow :: Owned ( query . to_owned ( ) ) , types : Cow :: Owned ( types . to_owned ( ) ) , } ; let mut map = self . map . write ( ) . unwrap ( ) ; let removed = map . remove ( & key ) . map ( | stmt | stmt . to_owned ( ) ) ; if removed . is_some ( ) { self . size . fetch_sub ( 1 , Ordering :: Relaxed ) ; } removed }
Remove statement from cache
Important:** This only removes the statement from one client
cache.
Remove statement from cache Important : ** This only removes the statement from one client cache .
&self
query
&str
types
&[Type]
&self
query
&str
types
&[Type]