You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "Xuanwo (via GitHub)" <gi...@apache.org> on 2025/04/17 05:06:18 UTC

Re: [I] new feature: Add cache layer for opendal [opendal]

Xuanwo commented on issue #5678:
URL: https://github.com/apache/opendal/issues/5678#issuecomment-2811754936

   I have an idea that our future `CacheLayer` can accept an `Operator` instead. Take `foyer` as an example, we can implement a `foyer` service. And use it like:
   
   ```rust
   let cache_op = Operator::from_config(FoyerConfig::default).finish()?;
   let op = op.layer(CacheLayer::new(cache_op));
   ```


-- 
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-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org