FUNCTION-LIST(3valkey)

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

πŸ’– FUNCTION-LIST(3valkey) πŸ’–

okay bestie, welcome to the Valkey Command Manual entry for function-list β€” she's the one who spills the tea on every library you've got loaded up in your server. let's get into it 🫢


✨ NAME ✨

function-list β€” returns information about all libraries. that's it, that's the job, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

FUNCTION LIST [LIBRARYNAME library-name-pattern] [WITHCODE]

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, FUNCTION LIST returns information about the functions and the libraries. no cap.

you can drop the optional LIBRARYNAME argument to give a pattern</> for matching library names β€” think of it like a vibe check but for library names only. and the optional WITHCODE modifier? that one makes the server include the libraries' source implementation right there in the reply. yes bestie, the actual code. iconic.

here's the info you get back for each library in the response:

  • library_name β€” the name of the library.
  • engine β€” the engine of the library.
  • functions β€” the list of functions in the library. each function has these fields:
    • name β€” the name of the function.
    • description β€” the function's description.
    • flags β€” an array of valkey-functions-intro(7) function flags.
  • library_code β€” the library's source code (only when you gave the WITHCODE modifier).

for more info please refer to valkey-functions-intro(7) Introduction to Valkey Functions. go read it, i'll wait πŸ’–


🌈 REPLY 🌈

valkey-protocol(7) Array reply: information about functions and libraries. simple as that ✨


πŸŽ€ COMPLEXITY πŸŽ€

O(N) where N is the number of functions.

so yeah, she scales with how many functions you got. the more you load, the more she's gotta walk through. math is math 🧚


πŸ‘‘ ACL CATEGORIES πŸ‘‘

@scripting @slow

heads up bestie β€” that @slow tag is real. she's not a quick little sprint, she's a whole stroll. keep that in mind πŸ’€

⭐ HISTORY ⭐

  • Available since: 7.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-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)

the whole squad, fr fr. go say hi 🌸


and that's the whole page bestie!! πŸŽ€ this lil masterpiece is from Valkey 9.0.0, dated 2025-10-21, and it lives in the FUNCTION-LIST(3valkey) manual. mwah πŸ’‹ go forth and list those functions πŸ‘‘βœ¨

πŸ“¦ where this page comes from