n class="floating-right">(<a href="https://github.com/jeffdgr8/kotbase/tree/main/couchbase-lite/src/commonMain/kotlin/kotbase/Database.kt#L396">source</a>)</span></span></div><div class="deprecation-content"><h3 class="">Deprecated</h3><p class="paragraph">Use defaultCollection.setDocumentExpiration()</p><h4 class="">Replace with</h4><div class="sample-container"><pre><code class="monospace block lang-kotlin" theme="idea">defaultCollection.setDocumentExpiration(id, expiration)</code></pre><span class="top-r