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

Adding basic version of DUMP and RESTORE commands #899

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

Conversation

s3w3nofficial
Copy link

Currently only work's on string type and does not support compression, but it's still a solid starting point.

Implemented

  • redis length encoding
  • redis compatible crc64 implementation
  • DUMP command that works on strings without compression
  • RESTORE command that works on strings without compression and additional modifiers

Not Implemented

  • support for other types than strings
  • support for lzf compression
  • optional modifiers for RESTORE

Also about the copyright for the crc64, i only ported the pycrc generated version, but still i'm not sure if and which copyright should i add.

@s3w3nofficial
Copy link
Author

@microsoft-github-policy-service agree

@s3w3nofficial s3w3nofficial force-pushed the s3w3nofficial/add-dump-and-restore-command branch from f9c9838 to 2954d6e Compare January 3, 2025 01:24
/// <summary>
/// Utils for working with redis length encoding
/// </summary>
public static class RedisLengthEncodingUtils
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename redis -> resp, e.g., RespLengthEncodingUtils to clarify that this is related to the RESP protocol.

@badrishc
Copy link
Contributor

badrishc commented Jan 6, 2025

Also about the copyright for the crc64, i only ported the pycrc generated version, but still i'm not sure if and which copyright should i add.

since you only ported the pycrc generated version, it seems we should be okay as it is ...

@TalZaccai TalZaccai requested a review from vazois January 7, 2025 19:28
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.

2 participants