Skip to main content
Module

x/redis/stream.ts>XIdInput

🦕 Redis client for Deno 🍕
Very Popular
Go to Latest
type alias XIdInput
import { type XIdInput } from "https://deno.land/x/redis@v0.32.2/stream.ts";

Flexible input type for commands which require message ID to be passed (represented in lower-level Redis API as "1000-0" etc).

We also include an array format for ease of use, where the first element is the epochMillis, second is seqNo.

We also allow passing a single number, which will represent the the epoch Millis with seqNo of zero. (Especially useful is to pass 0.)

definition:
| XId
| [number, number]
| number
| string