add latest albums
This commit is contained in:
parent
c93f0ea403
commit
a5d3c14f0c
4 changed files with 49 additions and 4 deletions
|
@ -9,6 +9,11 @@ macro_rules! use_api_cache {
|
|||
return Ok(serde_json::from_str(&ret).unwrap());
|
||||
}
|
||||
};
|
||||
($route:literal, $id:literal, $cache:ident) => {
|
||||
if let Some(ret) = $cache.get_only($route, $id).await {
|
||||
return Ok(serde_json::from_str(&ret).unwrap());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
pub struct RouteCache {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue