import { Command } from "https://deno.land/x/upstash_redis@v1.18.2-rc.0/pkg/commands/mod.ts";
Command offers default (de)serialization and the exec method to all commands.
TData represents what the user will enter or receive, TResult is the raw data returned from upstash, which may need to be transformed or parsed.
Constructors
new
Command(command: (string | unknown)[], opts?: CommandOptions<TResult, TData>)Create a new command instance.
You can define a custom deserialize
function. By default we try to deserialize as json.