jorgehermo9 commented on code in PR #5906: URL: https://github.com/apache/opendal/pull/5906#discussion_r2047276118
########## core/src/layers/foyer.rs: ########## @@ -0,0 +1,191 @@ +use crate::raw::*; +use crate::*; +use chrono::{DateTime, Utc}; +use foyer::{Code, CodeError, HybridCache}; +use serde::{Deserialize, Serialize}; +use std::sync::Arc; + +pub struct FoyerLayer { + cache: Arc<HybridCache<CacheKey, CacheValue>>, +} + +impl FoyerLayer { + pub async fn new(cache: HybridCache<CacheKey, CacheValue>) -> Result<Self> { Review Comment: okay, perfect then -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@opendal.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org