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

Java: Add DUMP and RESTORE commands #371

Merged

Conversation

@yipin-chen
Copy link
Author

Dump and Restore commands are currently not supported (blocked) in Transaction and related tests.

- added custom setter methods for long values
- changed seconds to idletime
- minor comments updated
}

/** Custom setter methods for replace and absttl */
public static class RestoreOptionsBuilder {

Choose a reason for hiding this comment

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

❤️

@acarbonetto acarbonetto merged commit 38e82a0 into java/integ_yipin_dump_restore Jun 20, 2024
44 checks passed
acarbonetto pushed a commit that referenced this pull request Jun 20, 2024
* Cherry-pick Java: Add DUMP and RESTORE commands

* Fixed codestyle issues

* Addressed review comments

* Added more test to SharedCommandtests

* Change ByteArrayArgumentMatcher to use Arrays.equals() comparison instead

* Addressed review comments
- added custom setter methods for long values
- changed seconds to idletime
- minor comments updated

* Updated few minor comments

* Removed Optional in RestoreOptions and added setter methods for replace and absttl
aaron-congo pushed a commit that referenced this pull request Jun 21, 2024
* Java: Add DUMP and RESTORE commands (#371)

* Cherry-pick Java: Add DUMP and RESTORE commands

* Fixed codestyle issues

* Addressed review comments

* Added more test to SharedCommandtests

* Change ByteArrayArgumentMatcher to use Arrays.equals() comparison instead

* Addressed review comments
- added custom setter methods for long values
- changed seconds to idletime
- minor comments updated

* Updated few minor comments

* Removed Optional in RestoreOptions and added setter methods for replace and absttl

* Replaced byte[] with GlideString and fixed codestyle issues

* Updated comment in RestoreOptions.java

* Addressed review comments

* Addressed more review comments

* Added the casting in handleBytesOrNullResponse to return byte[]

* Removed unsed tempKey in SharedCommandTests
Removed .getBytes() in RestoreOptions

---------

Co-authored-by: Yi-Pin Chen <[email protected]>
@yipin-chen yipin-chen deleted the java/dev_yipin_dump_restore branch June 24, 2024 21:43
cyip10 pushed a commit that referenced this pull request Jun 24, 2024
* Java: Add DUMP and RESTORE commands (#371)

* Cherry-pick Java: Add DUMP and RESTORE commands

* Fixed codestyle issues

* Addressed review comments

* Added more test to SharedCommandtests

* Change ByteArrayArgumentMatcher to use Arrays.equals() comparison instead

* Addressed review comments
- added custom setter methods for long values
- changed seconds to idletime
- minor comments updated

* Updated few minor comments

* Removed Optional in RestoreOptions and added setter methods for replace and absttl

* Replaced byte[] with GlideString and fixed codestyle issues

* Updated comment in RestoreOptions.java

* Addressed review comments

* Addressed more review comments

* Added the casting in handleBytesOrNullResponse to return byte[]

* Removed unsed tempKey in SharedCommandTests
Removed .getBytes() in RestoreOptions

---------

Co-authored-by: Yi-Pin Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants