功能列表

Syntax
FUNCTION LIST [LIBRARYNAME library-name-pattern] [WITHCODE]
Available since:
7.0.0
Time complexity:
O(N) where N is the number of functions
ACL categories:
@slow, @scripting,

返回有关函数和库的信息。

你可以使用可选的 LIBRARYNAME 参数来指定匹配库名称的模式。 可选的 WITHCODE 修饰符将使服务器在回复中包含库的源代码实现。

响应中为每个库提供以下信息:

  • library_name: 库的名称。
  • engine: 库的引擎。
  • functions: 库中的函数列表。 每个函数有以下字段:
    • name: 函数的名称。
    • description: 函数的描述。
    • flags: 一个函数标志的数组。
  • library_code: 库的源代码(当给定WITHCODE修饰符时)。

更多信息请参考Introduction to Redis Functions

RESP2/RESP3 回复

Array reply: information about functions and libraries.
RATE THIS PAGE
Back to top ↑