-
Notifications
You must be signed in to change notification settings - Fork 65
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
Python: Added FUNCTION FLUSH command #1590
Conversation
@@ -63,3 +63,18 @@ class ListDirection(Enum): | |||
""" | |||
RIGHT: Represents the option that elements should be popped from or added to the right side of a list. | |||
""" | |||
|
|||
|
|||
class FlushMode(Enum): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add to init.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could have a conflict with #1579 - please double check before merging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've merged #1579. Please rebase and update FlushMode(Enum)
to serve both commands.
cd70b32
to
77b8d00
Compare
77b8d00
to
752514c
Compare
@@ -5013,6 +5014,164 @@ async def test_object_refcount(self, redis_client: TRedisClient): | |||
refcount = await redis_client.object_refcount(string_key) | |||
assert refcount is not None and refcount >= 0 | |||
|
|||
@pytest.mark.parametrize("cluster_mode", [True, False]) | |||
@pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) | |||
async def test_function_load(self, redis_client: RedisClient): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async def test_function_load(self, redis_client: RedisClient): | |
async def test_function_load(self, redis_client: TRedisClient): |
Closing this PR, as the commits have been pulled into #1700. |
Issue #, if available:
Description of changes:
This PR is rebased over #1589
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.