script-show.3valkey - Man Page

Show server-side Lua script in the script cache.

Synopsis

SCRIPT SHOW sha1

Description

Returns the original source code of a script in the script cache.

This command accepts a SHA1 digest and returns the original script’s source code if the script is present in the script cache. It is intended primary for debugging, allowing users to introspect the contents of a script when they do not have direct access to it. For example, an admin may only have access to a script’s SHA1 from the monitor or slowlog and needs to determine the script’s contents for debugging.

For more information about EVAL scripts please refer to valkey-eval-intro(7) Introduction to Eval Scripts.

Complexity

O(1).

Acl Categories

@scripting @slow

History

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)

Info

2024-09-23 8.0.0 Valkey Command Manual