wip: feat: refactored cache implementation for put

This commit is contained in:
Jun Kurihara 2023-12-12 22:15:34 +09:00
commit 8dd6af6bc5
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
3 changed files with 142 additions and 60 deletions

View file

@ -47,6 +47,7 @@ where
{
let mut synth_req = None;
if self.cache.is_some() {
// TODO: try reading from cache
// if let Some(cached_response) = self.cache.as_ref().unwrap().get(&req).await {
// // if found, return it as response.
// info!("Cache hit - Return from cache");