import { Command } from "https://deno.land/x/upstash_redis@v1.24.0-next.2/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
| boolean
| number
| unknown
Create a new command instance.
You can define a custom deserialize
function. By default we try to deserialize as json.