pub(super) async fn cache_optimized_response(
state: &AppState,
cache_key: &str,
body: &[u8],
metadata_json: &str,
) -> Result<(), ApiError>Expand description
Write the optimized body and then its metadata, stopping at the first failure so metadata never outlives a body that was never stored.