Navigation

MongoDB\Model\IndexInfo::isTtl()

Definition

MongoDB\Model\IndexInfo::isTtl

Return whether the index is a TTL index. This correlates with the expireAfterSeconds option for MongoDB\Collection::createIndex().

function isTtl(): boolean

Return Values

A boolean indicating whether the index is a TTL index.

See Also