-
Notifications
You must be signed in to change notification settings - Fork 86
Add hyperlinks in Valkey server-side scripting and function command files #327
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
base: main
Are you sure you want to change the base?
Add hyperlinks in Valkey server-side scripting and function command files #327
Conversation
Added hyperlinks for EVAL_RO and INFO commands. Reworded sentence mentioning the INFO command to work better with the hyperlinks. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlinks to SCRIPT LOAD and EVAL commands. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlink for EVAL SHA command. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlink for the EVAL command. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlink for FUNCTION LOAD command. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlink for the FCALL command. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlink for FUNCTION HELP command. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlinks for the FUNCTION RESTORE and FUNCTION FLUSH commands. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlinks for FCALL and FCALL_RO commands. Reworded some text. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlink for the FUNCTION KILL command. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlink to SCRIPT HELP command. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlink for the EVAL command. Added hyperlink to valkey-cli page /topics/cli.md. Removed extra exclamation point ("!") in front of !SYNC bullet. Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlinks for EVAL SHA, SCRIPT LOAD, and EVAL commands where referenced. Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlinks to EVAL and SHUTDOWN NOSAVE commands Signed-off-by: milliehartnt123 <[email protected]>
Added hyperlinks to EVAL, EVAL SHA, and SCRPT FLUSH commands where referenced. Signed-off-by: milliehartnt123 <[email protected]>
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.
Pull Request Overview
Adds hyperlinks to inline command references across various Valkey server-side scripting and function command documentation.
- Updated Markdown files to link code references to their corresponding command pages.
- Corrected grammar in
function-load.md
. - Standardized sync modifier labels in
script-flush.md
andscript-debug.md
.
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
commands/script.md | Link SCRIPT HELP reference |
commands/script-load.md | Link EVALSHA , EVAL , and SCRIPT FLUSH commands |
commands/script-kill.md | Link EVAL and SHUTDOWN NOSAVE commands |
commands/script-flush.md | Fix SYNC modifier label and link INFO |
commands/script-exists.md | Link SCRIPT LOAD , EVALSHA , and EVAL |
commands/script-debug.md | Link EVAL , valkey-cli , update SYNC modifier |
commands/function.md | Link FUNCTION HELP reference |
commands/function-stats.md | Link FUNCTION KILL reference |
commands/function-load.md | Correct grammar and link FCALL /FCALL_RO |
commands/function-dump.md | Link FUNCTION RESTORE and FUNCTION FLUSH |
commands/fcall_ro.md | Link FCALL reference |
commands/fcall.md | Link FUNCTION LOAD reference |
commands/evalsha_ro.md | Link EVALSHA reference |
commands/evalsha.md | Link SCRIPT LOAD and EVAL references |
commands/eval_ro.md | Link EVAL reference |
commands/eval.md | Link EVAL_RO and INFO references |
Comments suppressed due to low confidence (2)
commands/script.md:3
- [nitpick] This line was converted from a list item to plain text. For consistent formatting, consider restoring the bullet marker (e.g.,
- To see…
) so it renders as part of the command list.
To see the list of available commands you can call [SCRIPT HELP](script-help.md).
commands/function-dump.md:8
- [nitpick] The sentence is a bit awkward and merges two actions. Consider rephrasing to "...using
FUNCTION DUMP
. Then call FUNCTION FLUSH to delete all libraries." for clarity.
The following example shows how to dump loaded libraries using `FUNCTION DUMP` and then it calls [FUNCTION FLUSH](function-flush.md) deletes all the libraries.
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.
LGTM other than that we should keep backticks for hyperlinked commands. thanks Millie
commands/eval.md
Outdated
Starting from Valkey 8.0, scripts loaded with `EVAL` or [EVAL_RO](eval_ro.md) will be deleted from Valkey after a certain number (least recently used order). | ||
The number of evicted scripts can be viewed through the `evicted_scripts` parameter in the `stats` section of the [INFO](info.md) command. |
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.
Starting from Valkey 8.0, scripts loaded with `EVAL` or [EVAL_RO](eval_ro.md) will be deleted from Valkey after a certain number (least recently used order). | |
The number of evicted scripts can be viewed through the `evicted_scripts` parameter in the `stats` section of the [INFO](info.md) command. | |
Starting from Valkey 8.0, scripts loaded with `EVAL` or [`EVAL_RO`](eval_ro.md) will be deleted from Valkey after a certain number (least recently used order). | |
The number of evicted scripts can be viewed through the `evicted_scripts` field in the `stats` section of the [`INFO`](info.md) command. |
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.
@PingXie Made change in later commit
commands/evalsha.md
Outdated
The server caches scripts by using the [SCRIPT LOAD](script-load.md) command. | ||
The command is otherwise identical to [EVAL](eval.md). |
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 think we should always add backticks for keywords
The server caches scripts by using the [SCRIPT LOAD](script-load.md) command. | |
The command is otherwise identical to [EVAL](eval.md). | |
The server caches scripts by using the [`SCRIPT LOAD`](script-load.md) command. | |
The command is otherwise identical to [`EVAL`](eval.md). |
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.
@PingXie Added tick marks to command hyperlinks in all updated files.
commands/evalsha_ro.md
Outdated
@@ -1,4 +1,4 @@ | |||
This is a read-only variant of the `EVALSHA` command that cannot execute commands that modify data. | |||
This is a read-only variant of the [EVALSHA](evalsha.md) command that cannot execute commands that modify data. |
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.
This is a read-only variant of the [EVALSHA](evalsha.md) command that cannot execute commands that modify data. | |
This is a read-only variant of the [`EVALSHA`](evalsha.md) command that cannot execute commands that modify data. |
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.
@PingXie Added tick marks to command hyperlinks in all updated files.
commands/fcall.md
Outdated
@@ -1,6 +1,6 @@ | |||
Invoke a function. | |||
|
|||
Functions are loaded to the server with the `FUNCTION LOAD` command. | |||
Functions are loaded to the server with the [FUNCTION LOAD](function-load.md) command. |
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.
Functions are loaded to the server with the [FUNCTION LOAD](function-load.md) command. | |
Functions are loaded to the server with the [`FUNCTION LOAD`](function-load.md) command. |
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.
@PingXie Added tick marks to command hyperlinks in all updated files.
commands/fcall_ro.md
Outdated
@@ -1,4 +1,4 @@ | |||
This is a read-only variant of the `FCALL` command that cannot execute commands that modify data. | |||
This is a read-only variant of the [FCALL](fcall.md) command that cannot execute commands that modify data. |
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.
This is a read-only variant of the [FCALL](fcall.md) command that cannot execute commands that modify data. | |
This is a read-only variant of the [`FCALL`](fcall.md) command that cannot execute commands that modify data. |
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.
@PingXie Added tick marks to command hyperlinks in all updated files.
commands/script-kill.md
Outdated
@@ -1,4 +1,4 @@ | |||
Kills the currently executing `EVAL` script, assuming no write operation was yet | |||
Kills the currently executing [EVAL](eval.md) script, assuming no write operation was yet |
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.
Kills the currently executing [EVAL](eval.md) script, assuming no write operation was yet | |
Kills the currently executing [`EVAL`](eval.md) script, assuming no write operation was yet |
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.
@PingXie Added tick marks to command hyperlinks in all updated files.
commands/script-kill.md
Outdated
@@ -8,7 +8,7 @@ the command returning with an error. | |||
|
|||
If the script has already performed write operations, it can not be killed in this | |||
way because it would violate Lua's script atomicity contract. | |||
In such a case, only `SHUTDOWN NOSAVE` can kill the script, killing | |||
In such a case, only [SHUTDOWN NOSAVE](shutdown.md) can kill the script, killing |
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.
In such a case, only [SHUTDOWN NOSAVE](shutdown.md) can kill the script, killing | |
In such a case, only [`SHUTDOWN NOSAVE`](shutdown.md) can kill the script, killing |
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.
@PingXie Added tick marks to command hyperlinks in all updated files.
commands/script-load.md
Outdated
using [EVALSHA](evalsha.md) with the correct SHA1 digest of the script, exactly like after | ||
the first successful invocation of [EVAL](eval.md). |
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.
using [EVALSHA](evalsha.md) with the correct SHA1 digest of the script, exactly like after | |
the first successful invocation of [EVAL](eval.md). | |
using [`EVALSHA`](evalsha.md) with the correct SHA1 digest of the script, exactly like after | |
the first successful invocation of [`EVAL`](eval.md). |
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.
@PingXie Added tick marks to command hyperlinks in all updated files.
commands/script-load.md
Outdated
The script is guaranteed to stay in the script cache forever (unless [SCRIPT | ||
FLUSH](script-flush.md) is called). |
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.
The script is guaranteed to stay in the script cache forever (unless [SCRIPT | |
FLUSH](script-flush.md) is called). | |
The script is guaranteed to stay in the script cache forever (unless [`SCRIPT | |
FLUSH`](script-flush.md) is called). |
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.
@PingXie Added tick marks to command hyperlinks in all updated files.
commands/script.md
Outdated
@@ -1,3 +1,3 @@ | |||
This is a container command for script management commands. | |||
|
|||
To see the list of available commands you can call `SCRIPT HELP`. | |||
To see the list of available commands you can call [SCRIPT HELP](script-help.md). |
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.
To see the list of available commands you can call [SCRIPT HELP](script-help.md). | |
To see the list of available commands you can call [`SCRIPT HELP`](script-help.md). |
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.
@PingXie Added tick marks to command hyperlinks in all updated files.
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
…rlink Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
Signed-off-by: milliehartnt123 <[email protected]>
… field Signed-off-by: milliehartnt123 <[email protected]>
Hyperlinks were added into the following Valkey server-side scripting and function command files:
#294 part 7