SCRIPT-SHOW(3valkey)

πŸ“¦
version 9.0.6 Β· 2 versions
, in fedora 44

πŸ’– 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 πŸ‘€


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