Skip to content

Commit

Permalink
fix: correction in semantics for the set/dictionary miss
Browse files Browse the repository at this point in the history
  • Loading branch information
rishtigupta committed Jun 22, 2023
1 parent 4718996 commit 55cb916
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Momento.Sdk/ICacheClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ public interface ICacheClient : IDisposable
/// <summary>
/// Calculate the length of a dictionary in the cache.
///
/// A dictionary that does not exist is interpreted to be a miss.
/// </summary>
/// <param name="cacheName">Name of the cache to perform the lookup in.</param>
/// <param name="dictionaryName">The dictionary to calculate length.</param>
Expand Down Expand Up @@ -534,7 +535,7 @@ public interface ICacheClient : IDisposable
/// <summary>
/// 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.
/// </summary>
/// <param name="cacheName">Name of the cache to perform the lookup in.</param>
/// <param name="setName">The set to calculate length.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/Momento.Sdk/Responses/CacheDictionaryLengthResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract class CacheDictionaryLengthResponse
public class Hit : CacheDictionaryLengthResponse
{
/// <summary>
/// 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.
/// </summary>
public int Length { get; private set; } = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/Momento.Sdk/Responses/CacheSetLengthResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract class CacheSetLengthResponse
public class Hit : CacheSetLengthResponse
{
/// <summary>
/// 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.
/// </summary>
public int Length { get; private set; } = 0;

Expand Down

0 comments on commit 55cb916

Please sign in to comment.