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

RetentionSettings

import type { RetentionSettings } from "https://googleapis.deno.dev/v1/redis:v1.ts";
interface RetentionSettings {
durationBasedRetention?: number;
quantityBasedRetention?: number;
retentionUnit?:
| "RETENTION_UNIT_UNSPECIFIED"
| "COUNT"
| "TIME"
| "DURATION"
| "RETENTION_UNIT_OTHER";
timeBasedRetention?: number;
timestampBasedRetentionTime?: Date;
}

§Properties

§
durationBasedRetention?: number
[src]

Duration based retention period i.e. 172800 seconds (2 days)

§
quantityBasedRetention?: number
[src]
§
retentionUnit?: "RETENTION_UNIT_UNSPECIFIED" | "COUNT" | "TIME" | "DURATION" | "RETENTION_UNIT_OTHER"
[src]

The unit that 'retained_backups' represents.

§
timeBasedRetention?: number
[src]
§
timestampBasedRetentionTime?: Date
[src]

Timestamp based retention period i.e. 2024-05-01T00:00:00Z