Back to Exposed

clear

docs/api/exposed-dao/org.jetbrains.exposed.v1.dao/-entity-cache/clear.html

1.2.0656 B
Original Source

clear

fun clear(flush: Boolean = true)

Clears this EntityCache of all stored data, including any reference mappings.

Parameters

flush

By default, pending inserts and updates for all cached entities will first be sent to the database. If this is set to false, any pending operations will not be flushed and will be removed as well.

Samples

org.jetbrains.exposed.v1.tests.shared.entities.EntityCacheTests.changeEntityCacheMaxEntitiesToStoreInMiddleOfTransaction

Generated by Dokka © 2026 Copyright