diff options
Diffstat (limited to 'pingora-memory-cache/src/read_through.rs')
-rw-r--r-- | pingora-memory-cache/src/read_through.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pingora-memory-cache/src/read_through.rs b/pingora-memory-cache/src/read_through.rs index a10a7c0..aeeb9a3 100644 --- a/pingora-memory-cache/src/read_through.rs +++ b/pingora-memory-cache/src/read_through.rs @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//! An async read through cache where cache miss are populated via the provided +//! An async read through cache where cache misses are populated via the provided //! async callback. use super::{CacheStatus, MemoryCache}; @@ -293,7 +293,7 @@ where { /// Same behavior as [RTCache::get] but for an arbitrary amount of keys. /// - /// If there are keys that are missing from cache, `multi_lookup` is invoked to populate the + /// If there are keys that are missing from the cache, `multi_lookup` is invoked to populate the /// cache before returning the final results. This is useful if your type supports batch /// queries. /// @@ -316,7 +316,7 @@ where match CB::multi_lookup(&misses, extra).await { Ok(miss_results) => { // assert! here to prevent index panic when building results, - // final_results has full list of misses but miss_results might not + // final_results has the full list of misses but miss_results might not assert!( miss_results.len() == misses.len(), "multi_lookup() failed to return the matching number of results" @@ -657,7 +657,7 @@ mod tests { assert_eq!(resp[1].1, CacheStatus::Miss); assert_eq!(resp[2].0, 3); assert_eq!(resp[2].1, CacheStatus::Miss); - // all hit after a fetch + // all hits after a fetch let resp = cache .multi_get([1, 2, 3].iter(), None, opt1.as_ref()) .await @@ -673,7 +673,7 @@ mod tests { #[tokio::test] #[should_panic(expected = "multi_lookup() failed to return the matching number of results")] async fn test_inconsistent_miss_results() { - // force empty result + // force an empty result let opt1 = Some(ExtraOpt { error: false, empty: true, |