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

Consistency Layer and collection cache optional null value change #6307

Closed
kushagraThapar opened this issue Nov 12, 2019 · 1 comment
Closed
Assignees
Labels
cosmos:v4-item Indicates this feature will be shipped as part of V4 release train Cosmos

Comments

@kushagraThapar
Copy link
Member

Is your feature request related to a problem? Please describe.
Flux / Mono doesn't support null values. In order to keep the consistency and caching logic same between different versions of SDK, we need to update the consistency layer and caching layer with value holder objects, which can contain null values, and then can be passed around API calls.

Describe the solution you'd like
Use value holder objects which can contain null values.

Describe alternatives you've considered
Current alternate is to use switchIfEmpty() or Mono.optional or Flux.optional (which is empty() internally)

But this has some issues.

@kushagraThapar
Copy link
Member Author

This has been fixed on both v2 and v3, closing it now.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cosmos:v4-item Indicates this feature will be shipped as part of V4 release train Cosmos
Projects
None yet
Development

No branches or pull requests

2 participants