TWSDocumentMetadata Class Reference

Inherits from NSObject
Declared in TWSDocumentMetadata.h

Overview

Metadata associated with the Document.

+ withTtl:

Optionally specify TTL for the Document.

+ (nullable TWSDocumentMetadata *)withTtl:(int)ttl

Parameters

ttl

The new time to live in seconds from now or TWSDurationInfinity to indicate no expiry.

Return Value

New metadata object with the specified ttl.

Discussion

Optionally specify TTL for the Document.

This TTL specifies the minimum time the Document will live, sometime soon after this time the object will be deleted.

Declared In

TWSDocumentMetadata.h