FUNCTION-KILL(3valkey)

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

✨ 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 🌈


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