From 55cb9166202d8da9dec9e1cb9f29ca73dbe2dd14 Mon Sep 17 00:00:00 2001 From: rishtigupta Date: Thu, 22 Jun 2023 09:36:34 -0700 Subject: [PATCH] fix: correction in semantics for the set/dictionary miss --- src/Momento.Sdk/ICacheClient.cs | 3 ++- src/Momento.Sdk/Responses/CacheDictionaryLengthResponse.cs | 2 +- src/Momento.Sdk/Responses/CacheSetLengthResponse.cs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Momento.Sdk/ICacheClient.cs b/src/Momento.Sdk/ICacheClient.cs index 1d6affda..343bc876 100644 --- a/src/Momento.Sdk/ICacheClient.cs +++ b/src/Momento.Sdk/ICacheClient.cs @@ -455,6 +455,7 @@ public interface ICacheClient : IDisposable /// /// Calculate the length of a dictionary in the cache. /// + /// A dictionary that does not exist is interpreted to be a miss. /// /// Name of the cache to perform the lookup in. /// The dictionary to calculate length. @@ -534,7 +535,7 @@ public interface ICacheClient : IDisposable /// /// Calculate the length of a set in the cache. /// - /// A set that does not exist is interpreted to have length 0. + /// A set that does not exist is interpreted to be a miss. /// /// Name of the cache to perform the lookup in. /// The set to calculate length. diff --git a/src/Momento.Sdk/Responses/CacheDictionaryLengthResponse.cs b/src/Momento.Sdk/Responses/CacheDictionaryLengthResponse.cs index 1673a8ce..d575b6b2 100644 --- a/src/Momento.Sdk/Responses/CacheDictionaryLengthResponse.cs +++ b/src/Momento.Sdk/Responses/CacheDictionaryLengthResponse.cs @@ -39,7 +39,7 @@ public abstract class CacheDictionaryLengthResponse public class Hit : CacheDictionaryLengthResponse { /// - /// The length of the dictionary. If the dictionary is missing or empty, the result is zero. + /// The length of the dictionary. If the dictionary is missing or empty, the result is a miss. /// public int Length { get; private set; } = 0; diff --git a/src/Momento.Sdk/Responses/CacheSetLengthResponse.cs b/src/Momento.Sdk/Responses/CacheSetLengthResponse.cs index b7e95dee..b14c7fef 100644 --- a/src/Momento.Sdk/Responses/CacheSetLengthResponse.cs +++ b/src/Momento.Sdk/Responses/CacheSetLengthResponse.cs @@ -39,7 +39,7 @@ public abstract class CacheSetLengthResponse public class Hit : CacheSetLengthResponse { /// - /// The length of the set. If the set is missing or empty, the result is zero. + /// The length of the set. If the set is missing or empty, the result is a miss. /// public int Length { get; private set; } = 0;