Arguments
Object
Response
List of libraries.
Show child attributes
Show child attributes
string
required
The name of the library.
string
required
The engine used by the library (e.g., “LUA”).
Object[]
required
string
The source code of the library (only included if
withCode is true).const libs = await redis.functions.list({
libraryName: "mylib",
withCode: true
})
console.log(libs)
// [
// {
// libraryName: "mylib",
// engine: "LUA",
// functions: [{
// name: "my_func",
// description: null,
// flags: [ "no-writes" ]
// }],
// libraryCode: "#!lua name=mylib ..."
// }
// ]