Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit 9e86739

Browse files
committed
feat: update cache handling to use loadOrCreate method for improved entity retrieval
1 parent 333b922 commit 9e86739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surf-cloud-api/surf-cloud-api-server/src/main/kotlin/dev/slne/surf/cloud/api/server/exposed/service/AbstractExposedDAOService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ abstract class AbstractExposedDAOService<K, V : Entity<*>>(
8383
block: suspend V.() -> Unit
8484
) {
8585
val entity = cache.get(key) {
86-
if (createIfMissing) self.getOrCreate(key) else self.load(key)
86+
if (createIfMissing) self.loadOrCreate(key) else self.load(key)
8787
}
8888

8989
if (entity != null) {

0 commit comments

Comments
 (0)