Back to Exposed

testCache

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

1.2.01.2 KB
Original Source

testCache

fun testCache(id: EntityID<ID>): T?

Searches the current EntityCache for an Entity by its EntityID value.

Return

The entity that has this wrapped id value, or null if no entity was found.

Samples

org.jetbrains.exposed.v1.tests.shared.entities.EntityTests.testCacheInvalidatedOnDSLDelete


fun testCache(cacheCheckCondition: T.() -> Boolean): Sequence<T>

Searches the current EntityCache for all Entity instances that match the provided cacheCheckCondition.

Return

A sequence of matching entities found.

Generated by Dokka © 2026 Copyright