Documentation Index
Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Arguments
The list options.
Pattern for matching library names.
Whether to include the library source code in the response.
Response
List of libraries.
The engine used by the library (e.g., “LUA”).
List of functions in the library.
The name of the function.
description
string | undefined
required
The description of the function, or undefined if not provided.
List of flags for the function (e.g., “no-writes”).
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 ..."
// }
// ]