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(django-redis): add set functionality to default client #654

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alirezaei1380
Copy link
Contributor

@alirezaei1380 alirezaei1380 commented Feb 9, 2023

This PR solves #597 and adds all set functionality

@aalekhpatel07
Copy link

Thanks for your work! Wondering if there are any blockers for landing this atm. Let me know if I can be of any help.

Copy link
Member

@WisdomPill WisdomPill left a comment

Choose a reason for hiding this comment

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

sorry for the long delay, it looks good but I think some methods are missing

could you please add a CHANGELOG file?

@omit_exception
def sinter(self, *args, **kwargs):
return self.client.sinter(*args, **kwargs)

Copy link
Member

Choose a reason for hiding this comment

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

SINTERCARD is missing

@omit_exception
def smembers(self, *args, **kwargs):
return self.client.smembers(*args, **kwargs)

Copy link
Member

Choose a reason for hiding this comment

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

SMISMEMBER is missing

@omit_exception
def srem(self, *args, **kwargs):
return self.client.srem(*args, **kwargs)

Copy link
Member

Choose a reason for hiding this comment

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

SSCAN is missing

self,
dest: Any,
*keys,
version: Optional[int] = None,
Copy link
Member

Choose a reason for hiding this comment

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

maybe here we would like to have two versions? version of set A and version of set B

Choose a reason for hiding this comment

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

Is alirezaei1380#1 kinda what you had in mind for the multiple versions?

Copy link
Member

Choose a reason for hiding this comment

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

yes, but please use camel_case... I am really sorry for the late reply

Choose a reason for hiding this comment

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

If you're referring to the version* args, I've changed them to be snake_case. Lmk if I misinterpreted anything.

Hoping the author accepts this PR soon.

aalekhpatel07 pushed a commit to aalekhpatel07/django-redis that referenced this pull request Nov 29, 2023
@LucianaAG LucianaAG mentioned this pull request Jan 30, 2024
@Strapchay
Copy link

Is this getting added or merged soon? or what is the alternative to using the set methods like srem .etc

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.

4 participants