feat[orm]: unsafe updates entity immediatly

This commit is contained in:
godotg committed 2024-01-25 19:33:43 +08:00
1 parent 5f75c53ef2
commit 9c3b4439fb
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -186,7 +186,7 @@ public class EntityCache<PK extends Comparable<PK>, E extends IEntity<PK>> imple
}
@Override
public void updateUnsafeNow(E entity) {
public void updateNowUnsafe(E entity) {
updateUnsafe(entity);
OrmContext.getAccessor().update(entity);
var currentPnode = cache.getIfPresent(entity.id());
+1 -1
View File
@@ -47,7 +47,7 @@ public interface IEntityCache<PK extends Comparable<PK>, E extends IEntity<PK>>
/**
* 同updateNow(),不会校验更新的线程是否一致
*/
void updateUnsafeNow(E entity);
void updateNowUnsafe(E entity);
/**
* 不会删除数据库中的数据,只会删除缓存数据