flush

fun flush()

Sends all pending inserts and updates for all Entity instances in this EntityCache to the database.


fun flush(tables: Iterable<IdTable<*>>)

Sends all pending inserts and updates for Entity instances in this EntityCache to the database.

The only entities that will be flushed are those that can be associated with any of the specified tables.