SCRIPT-SHOW(3valkey)
π SCRIPT-SHOW π
okay bestie, quick vibe check: this is the Valkey Command Manual page for script-show, and it's lowkey one of the most useful little gremlins in the whole scripting toolbox. let's get into it β¨
β¨ NAME β¨
script-show β show server-side Lua script in the script cache. π¦
β¨ SYNOPSIS β¨
SCRIPT SHOW sha1
that's it. that's the whole thing. no cap. π
πΈ DESCRIPTION πΈ
So. You hand it a SHA1 digest and it hands you back the original source code of that script β but ONLY if the script is actually sitting in the script cache. If it's not there? No source for you, sorry bestie. π
It's giving debugging main character energy. The whole point is letting you peek inside a script when you literally do not have direct access to it. Like, imagine an admin who only ever sees a script's SHA1 floating by in the monitor or in the slowlog β they're staring at a hash like "okay but what ARE you" π and SCRIPT SHOW is the friend who tells them. Fr fr.
For more lore about EVAL scripts, go read valkey-eval-intro(7) Introduction to Eval Scripts. It's iconic, you'll love it. π
π REPLY π
valkey-protocol(7) Bulk string reply: the Lua script, if the sha1 hash exists in the script cache. π
β‘ COMPLEXITY β‘
O(1) β constant time, baby. instant. ate and left no crumbs. π₯
π ACL CATEGORIES π
@scripting@slow
π HISTORY π
- Available since:
8.0.0β
π SEE ALSO π
eval(3valkey)evalsha(3valkey)evalsha_ro(3valkey)eval_ro(3valkey)fcall(3valkey)fcall_ro(3valkey)function(3valkey)function-delete(3valkey)function-dump(3valkey)function-flush(3valkey)function-help(3valkey)function-kill(3valkey)function-list(3valkey)function-load(3valkey)function-restore(3valkey)function-stats(3valkey)script(3valkey)script-debug(3valkey)script-exists(3valkey)script-flush(3valkey)script-help(3valkey)script-kill(3valkey)script-load(3valkey)
ngl, that's a LOT of friends. go say hi to all of them. they don't bite. probably. π§
okay that's the whole page, bestie!! this one's from Valkey 9.0.0, dated 2025-10-21 β screenshot it, bookmark it, tattoo it on your arm, whatever feels right. mwah ππβ¨
π¦ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms