Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

RetentionConfig

import type { RetentionConfig } from "https://googleapis.deno.dev/v1/pubsublite:v1.ts";

The settings for a topic's message retention.

interface RetentionConfig {
period?: number;
perPartitionBytes?: bigint;
}

§Properties

§
period?: number
[src]

How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below per_partition_bytes.

§
perPartitionBytes?: bigint
[src]

The provisioned storage, in bytes, per partition. If the number of bytes stored in any of the topic's partitions grows beyond this value, older messages will be dropped to make room for newer ones, regardless of the value of period.