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

Merged
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2954d6e
Implement basic version of DUMP and RESTORE redis commands
s3w3nofficial Dec 22, 2024
0e7f821
Merge branch 'main' into s3w3nofficial/add-dump-and-restore-command
s3w3nofficial Jan 3, 2025
7406d74
refactor and add dump, restore to cluster slot verification test
s3w3nofficial Jan 12, 2025
8a9ee0a
Merge branch 'main' into s3w3nofficial/add-dump-and-restore-command
s3w3nofficial Jan 12, 2025
6133607
Update comments to use 'RESP' encoding terminology
badrishc Jan 13, 2025
c14f0b3
fix formating
s3w3nofficial Jan 15, 2025
0d18b6a
Merge branch 'main' into s3w3nofficial/add-dump-and-restore-command
s3w3nofficial Jan 15, 2025
2f9b457
fix tests
s3w3nofficial Jan 15, 2025
2fa9b08
add acl and tests and update default config to include the skip checksum
s3w3nofficial Jan 16, 2025
181d780
rm accidentally commited dump.rdb file
s3w3nofficial Jan 16, 2025
2a789d8
Remove trailing whitespace in RespCommandTests.cs
badrishc Jan 16, 2025
f15a662
fix comments
s3w3nofficial Jan 16, 2025
e281e34
run CommandInfoUpdater and replace docs / info files
s3w3nofficial Jan 16, 2025
d41421d
Merge branch 'main' into s3w3nofficial/add-dump-and-restore-command
s3w3nofficial Jan 16, 2025
737e7a9
Remove trailing whitespace in Options.cs
badrishc Jan 16, 2025
eed596f
fix RestoreACLsAsync test
s3w3nofficial Jan 16, 2025
85d0136
fix comments
s3w3nofficial Jan 16, 2025
2f2a9a3
optimize RespLengthEncodingUtils
s3w3nofficial Jan 17, 2025
024362b
implement suggestions
s3w3nofficial Jan 18, 2025
6b1b7b5
fix comments
s3w3nofficial Jan 19, 2025
60cb1e2
use SET_Conditional directly
s3w3nofficial Jan 19, 2025
02718c7
rename SkipChecksumValidation
s3w3nofficial Jan 19, 2025
1fb94a5
fix cluster restore test
s3w3nofficial Jan 19, 2025
52b1fa6
directly write to the output buffer for non-large objects
s3w3nofficial Jan 19, 2025
02beab3
Refactor WriteDirect call in KeyAdminCommands
badrishc Jan 22, 2025
3a5810a
Merge branch 'main' into s3w3nofficial/add-dump-and-restore-command
badrishc Jan 22, 2025
c081672
Merge branch 'main' into s3w3nofficial/add-dump-and-restore-command
badrishc Jan 22, 2025
4db8b45
Mark multiple commands as deprecated in JSON
badrishc Jan 22, 2025
049e383
Mark commands as deprecated in documentation
badrishc Jan 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Mark commands as deprecated in documentation
badrishc authored Jan 22, 2025
commit 049e383b3e4ed64b5409259c1aad0ea05c46cc34
9 changes: 9 additions & 0 deletions libs/resources/RespCommandsDocs.json
Original file line number Diff line number Diff line change
@@ -5502,6 +5502,7 @@
"Summary": "Returns the last element of a list after removing and pushing it to another list. Deletes the list if the last element was popped.",
"Group": "List",
"Complexity": "O(1)",
"DocFlags": "Deprecated",
"ReplacedBy": "\u0060LMOVE\u0060 with the \u0060RIGHT\u0060 and \u0060LEFT\u0060 arguments",
"Arguments": [
{
@@ -5994,6 +5995,7 @@
"Summary": "Sets the string value and expiration time of a key. Creates the key if it doesn\u0027t exist.",
"Group": "String",
"Complexity": "O(1)",
"DocFlags": "Deprecated",
"ReplacedBy": "\u0060SET\u0060 with the \u0060EX\u0060 argument",
"Arguments": [
{
@@ -6073,6 +6075,7 @@
"Summary": "Set the string value of a key only when the key doesn\u0027t exist.",
"Group": "String",
"Complexity": "O(1)",
"DocFlags": "Deprecated",
"ReplacedBy": "\u0060SET\u0060 with the \u0060NX\u0060 argument",
"Arguments": [
{
@@ -6218,6 +6221,7 @@
"Summary": "Sets a Redis server as a replica of another, or promotes it to being a master.",
"Group": "Server",
"Complexity": "O(1)",
"DocFlags": "Deprecated",
"ReplacedBy": "\u0060REPLICAOF\u0060",
"Arguments": [
{
@@ -6482,6 +6486,7 @@
"Summary": "Returns a substring from a string value.",
"Group": "String",
"Complexity": "O(N) where N is the length of the returned string. The complexity is ultimately determined by the returned length, but because creating a substring from an existing string is very cheap, it can be considered O(1) for small strings.",
"DocFlags": "Deprecated",
"ReplacedBy": "\u0060GETRANGE\u0060",
"Arguments": [
{
@@ -7353,6 +7358,7 @@
"Summary": "Returns members in a sorted set within a range of scores.",
"Group": "SortedSet",
"Complexity": "O(log(N)\u002BM) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).",
"DocFlags": "Deprecated",
"ReplacedBy": "\u0060ZRANGE\u0060 with the \u0060BYSCORE\u0060 argument",
"Arguments": [
{
@@ -7634,6 +7640,7 @@
"Summary": "Returns members in a sorted set within a range of indexes in reverse order.",
"Group": "SortedSet",
"Complexity": "O(log(N)\u002BM) with N being the number of elements in the sorted set and M the number of elements returned.",
"DocFlags": "Deprecated",
"ReplacedBy": "\u0060ZRANGE\u0060 with the \u0060REV\u0060 argument",
"Arguments": [
{
@@ -7671,6 +7678,7 @@
"Summary": "Returns members in a sorted set within a lexicographical range in reverse order.",
"Group": "SortedSet",
"Complexity": "O(log(N)\u002BM) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).",
"DocFlags": "Deprecated",
"ReplacedBy": "\u0060ZRANGE\u0060 with the \u0060REV\u0060 and \u0060BYLEX\u0060 arguments",
"Arguments": [
{
@@ -7721,6 +7729,7 @@
"Summary": "Returns members in a sorted set within a range of scores in reverse order.",
"Group": "SortedSet",
"Complexity": "O(log(N)\u002BM) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).",
"DocFlags": "Deprecated",
"ReplacedBy": "\u0060ZRANGE\u0060 with the \u0060REV\u0060 and \u0060BYSCORE\u0060 arguments",
"Arguments": [
{