Method SetTimeToLive
SetTimeToLive(TimeSpan)
Sets the time to live value.
public IndexOptionsBuilder<TDocument> SetTimeToLive(TimeSpan timeToLive)
Parameters
timeToLive
TimeSpanThe time to live.
Returns
- IndexOptionsBuilder<TDocument>
The builder (so method calls can be chained).