-
Notifications
You must be signed in to change notification settings - Fork 69
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
support hsetnx, watch, type and unlink with GlideString #1641
support hsetnx, watch, type and unlink with GlideString #1641
Conversation
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 IT
java/client/src/main/java/glide/api/commands/GenericBaseCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/GenericBaseCommands.java
Outdated
Show resolved
Hide resolved
@@ -161,8 +161,10 @@ public void unlink_multiple_keys(BaseClient client) { | |||
setResult = client.set(key3, value).get(); | |||
assertEquals(OK, setResult); | |||
|
|||
Long unlinkedKeysNum = client.unlink(new String[] {key1, key2, key3}).get(); |
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.
As before: add GlideString
, without removing String
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.
Please update the IT to add GS without removing the String
version
java/integTest/src/test/java/glide/standalone/TransactionTests.java
Outdated
Show resolved
Hide resolved
java/integTest/src/test/java/glide/standalone/TransactionTests.java
Outdated
Show resolved
Hide resolved
…ary integration test to use binary version calls
GlideString key1 = GlideString.gs("{key}-1" + UUID.randomUUID()); | ||
GlideString key2 = GlideString.gs("{key}-2" + UUID.randomUUID()); | ||
GlideString key3 = GlideString.gs("{key}-3" + UUID.randomUUID()); | ||
GlideString key4 = GlideString.gs("{key}-4" + UUID.randomUUID()); |
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.
Import gs
and shorten all calls
GlideString key1 = GlideString.gs("{key}-1" + UUID.randomUUID()); | |
GlideString key2 = GlideString.gs("{key}-2" + UUID.randomUUID()); | |
GlideString key3 = GlideString.gs("{key}-3" + UUID.randomUUID()); | |
GlideString key4 = GlideString.gs("{key}-4" + UUID.randomUUID()); | |
GlideString key1 = gs("{key}-1" + UUID.randomUUID()); | |
GlideString key2 = gs("{key}-2" + UUID.randomUUID()); | |
GlideString key3 = gs("{key}-3" + UUID.randomUUID()); | |
GlideString key4 = gs("{key}-4" + UUID.randomUUID()); |
Apply thoughout
See SharedCommandTests.java
for reference
support hsetnx, watch, type and unlink with GlideString