FUNCTION-KILL(3valkey)
β¨ NAME β¨
function-kill β bestie, this one just ends a function while it's mid-run. Like hitting the β "stop" button on a function that's currently executing. That's it, that's the whole job π
πΈ SYNOPSIS πΈ
FUNCTION KILL
π DESCRIPTION π
Okay so picture this: a function is out here actively executing, doing its little thing, and you're like "girl, enough." That's FUNCTION KILL. It kills a function that is currently executing. π¦
But here's the important part, no cap:
The FUNCTION KILL command can be used only on functions that did not modify the dataset during their execution. Why? Because stopping a read-only function doesn't violate the scripting engine's guaranteed atomicity. If it did touch the dataset, nope, not allowed, don't even try it π
If you want the full lore, go read valkey-functions-intro(7), aka Introduction to Valkey Functions. It's giving required reading, fr fr π
π REPLY π
valkey-protocol(7) Simple string reply: OK. That's it bestie, you get an OK and you move on π
π₯ COMPLEXITY π₯
O(1) β constant time, baby. Instant. Iconic. No notes. β
π ACL CATEGORIES π
@scripting@slow
π¦ HISTORY π¦
- Available since:
7.0.0β so she's been around a minute, periodt π
π 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-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)script-show(3valkey)
And that's the whole page, bestie π«Ά this one's straight from the Valkey Command Manual, version 9.0.0, dated 2025-10-21. Go forth and kill responsibly πβ¨
π¦ 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