mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 04:15:22 +00:00
feat[orm]: unsafe updates entity immediatly
This commit is contained in:
1 parent
5f75c53ef2
commit
9c3b4439fb
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -47,7 +47,7 @@ public interface IEntityCache<PK extends Comparable<PK>, E extends IEntity<PK>>
|
||||
/**
|
||||
* 同updateNow(),不会校验更新的线程是否一致
|
||||
*/
|
||||
void updateUnsafeNow(E entity);
|
||||
void updateNowUnsafe(E entity);
|
||||
|
||||
/**
|
||||
* 不会删除数据库中的数据,只会删除缓存数据
|
||||
|
||||
Reference in new issue
Block a user