Protected ReadonlydbProtected ReadonlyredirectOptionalexpiresAt?: DbTimestampCriteria<Date>Filter on the expiry timestamp; { before: "now" } = expired-only.
NULL (never-expiring) rows are excluded whenever this criterion is set.
Optionalids?: string[]Optionalpage?: numberOptionalpageSize?: number
Resolve an unexpired short URL by its public external id. Used by the public redirect Lambda — intentionally not customer-scoped because the external id is globally unique (sqids-encoded primary key).
Cache strategy: cache the row including
expiresAtso the expiry check remains precise within the TTL window. Negative-cachenullto absorb scanner traffic against nonexistent ids.