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

ifAbsent support with ZsetOperations [DATAREDIS-1235] #1794

Closed
spring-projects-issues opened this issue Oct 21, 2020 · 0 comments
Closed

ifAbsent support with ZsetOperations [DATAREDIS-1235] #1794

spring-projects-issues opened this issue Oct 21, 2020 · 0 comments
Assignees
Labels
in: core Issues in core support type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

Kuldeep Singh opened DATAREDIS-1235 and commented

Expected Behavior
ZsetOperations Should support ifAbsent method
Current Behavior

ZsetOperations does not support ifAbsent method currently

Context

I am trying to use Redis SortedSets for a project where I Need to insert a set only if its already not present. But with current implementation of RedisTemplate I am unable to achieve that as ifAbsent is not supported for ZsetOperations yet

 

Also please suggest if there is any alternative way or workaround to achieve the same thing.
PS: I want to achieve the functionality of ifAbsent only in per operation basis. I do not want ifAbsent to be enabled for all operations


No further details from DATAREDIS-1235

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: core Issues in core support labels Dec 30, 2020
@christophstrobl christophstrobl added the status: waiting-for-triage An issue we've not yet triaged label Feb 15, 2021
@mp911de mp911de removed the status: waiting-for-triage An issue we've not yet triaged label Feb 15, 2021
@mp911de mp911de closed this as completed in 4d77392 Mar 3, 2021
mp911de added a commit that referenced this issue Mar 3, 2021
Remove ZAddArgs.empty() method to avoid confusion with none() method. Use NONE constant only internally. Adapt calling methods.

Reformat code.

See #1794
Original pull request: #1988.
@mp911de mp911de added this to the 2.5 RC1 (2021.0.0) milestone Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants