FunctionDeleteCommand (commands/function_delete.ts)

redis-js · packages/redis/pkg/commands/function_delete.ts · typescript · MIT
database

Deletes a Redis function library, enabling developers to manage serverless functions.

// Source: https://github.com/upstash/redis-js | License: MIT | Copyright 2021 Upstash, Inc
// Provided via justclaw.it.com; keep this notice with the code.
import type { CommandOptions } from "./command";
import { Command } from "./command";

/**
 * @see https://redis.io/docs/latest/commands/function-delete/
 * @see node_modules/@upstash/redis/docs/commands/functions/delete.mdx
 */
export class FunctionDeleteCommand extends Command<"OK", "OK"> {
  constructor([libraryName]: [libraryName: string], opts?: CommandOptions<"OK", "OK">) {
    super(["function", "delete", libraryName], opts);
  }
}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key