async fn put_cf_async(
        &self,
        cf_name: &'static str,
        key: Bytes,
        val: Bytes,
    ) -> Result<(), CacheError> {
        self.db_op_async(move |db| {
            // find the ColumnFamily by name
            let cf = db.cf_handle(cf_name).expect("cf_handle non-existant");

            // place the entry into the database
            db.put_cf(&cf, &key, &val).map_err(CacheError::Rocks)
        })
        .await
    }
/// Utilizes `db_op_async` place an item in a Column Family with async
Utilizes `db_op_async` place an item in a Column Family with async
Utilizes ` db_op_async ` place an item in a Column Family with async
async fn put_cf_async(
        &self,
        cf_name: &'static str,
        key: Bytes,
        val: Bytes,
    ) -> Result<(), CacheError> {
        self.db_op_async(move |db| {
            // find the ColumnFamily by name
            let cf = db.cf_handle(cf_name).expect("cf_handle non-existant");
            // place the entry into the database
            db.put_cf(&cf, &key, &val).map_err(CacheError::Rocks)
        })
        .await
    }
async fn put_cf_async ( & self , cf_name : & ' static str , key : Bytes , val : Bytes , ) -> Result < ( ) , CacheError > { self . db_op_async ( move | db | { // find the ColumnFamily by name let cf = db . cf_handle ( cf_name ) . expect ( " " ) ; // place the entry into the database db . put_cf ( & cf , & key , & val ) . map_err ( CacheError :: Rocks ) } ) . await }
Utilizes `db_op_async` place an item in a Column Family with async
Utilizes ` db_op_async ` place an item in a Column Family with async
&self
cf_name
&'static str
key
Bytes
val
Bytes