-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove value response name and list push length (#149)
fixes: - The ListRemoveValue response had an out of date name. Changed to CacheListRemoveValue - Added list length to the response for ListPushFront and ListPushBack
- Loading branch information
Showing
6 changed files
with
67 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/Momento.Sdk/Incubating/Responses/CacheListPushBackResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
using Momento.Protos.CacheClient; | ||
|
||
namespace Momento.Sdk.Incubating.Responses; | ||
|
||
/// <summary> | ||
/// The result of a <c>ListPushBack</c> command | ||
/// </summary> | ||
public class CacheListPushBackResponse | ||
{ | ||
/// <summary> | ||
/// The length of the list post-push (and post-truncate, if that applies) | ||
/// </summary> | ||
public int ListLength { get; private set; } | ||
|
||
public CacheListPushBackResponse(_ListPushBackResponse response) | ||
{ | ||
ListLength = checked((int)response.ListLength); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Momento.Sdk/Incubating/Responses/CacheListPushFrontResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
using Momento.Protos.CacheClient; | ||
|
||
namespace Momento.Sdk.Incubating.Responses; | ||
|
||
/// <summary> | ||
/// The result of a <c>ListPushFront</c> command | ||
/// </summary> | ||
public class CacheListPushFrontResponse | ||
{ | ||
/// <summary> | ||
/// The length of the list post-push (and post-truncate, if that applies) | ||
/// </summary> | ||
public int ListLength { get; private set; } | ||
|
||
public CacheListPushFrontResponse(_ListPushFrontResponse response) | ||
{ | ||
ListLength = checked((int)response.ListLength); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...g/Responses/CacheListRemoveAllResponse.cs → ...Responses/CacheListRemoveValueResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
namespace Momento.Sdk.Incubating.Responses; | ||
|
||
public class CacheListRemoveAllResponse | ||
public class CacheListRemoveValueResponse | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters