Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: list push, pop, and fetch #115

Merged
merged 13 commits into from
Aug 24, 2022
Merged

Conversation

malandis
Copy link
Contributor

@malandis malandis commented Aug 22, 2022

Add ListPushFrontAsync, ListPushBackAsync, ListPopFrontAsync, ListPopBackAsync, ListFetchAsync to incubating client.

This PR adds the above methods, tests, and documentation to the client.

We also refactored various unary get response classes to inherit from a common base. In the case of simple Get, DictionaryGet, and ListPop, the state and behavior of unary get responses are the same; the only differences lay in building the response object from the various gRPC response messages.

Closes #110

In this commit we also add more extension methods to convert
`IEnumerable<byte[]>` and `IEnumerable<string>` to
`IEnumerable<ByteArray>`.
We will expose a `Concatenate` API to serve this need.
Many data structures have `Get` operations that retrieve a unary
value with a status. The data and accessors are exactly the same as
for the primitive `CacheGetStatus`. To reduce code duplication, we
refactor the common data and behavior into a base class and derive
from that.
@malandis malandis marked this pull request as ready for review August 24, 2022 00:51
Copy link

@anp13 anp13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@malandis malandis merged commit 6931d75 into main Aug 24, 2022
@malandis malandis deleted the feat/basic-list-functionality branch August 24, 2022 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

list apis in C# SDK
2 participants