Back to Exposed

findWithCacheCondition

docs/api/exposed-dao/org.jetbrains.exposed.v1.dao/-entity-class/find-with-cache-condition.html

1.2.0991 B
Original Source

findWithCacheCondition

fun findWithCacheCondition(cacheCheckCondition: T.() -> Boolean, op: () -> Op<Boolean>): Sequence<T>

Searches the current EntityCache for all Entity instances that match the provided cacheCheckCondition. If the cache returns no matches, entities that conform to the provided op conditional expression will be retrieved from the database.

Return

A sequence of matching entities found.

Generated by Dokka © 2026 Copyright