chore[orm]: rename method

This commit is contained in:
godotg
2024-06-21 18:40:32 +08:00
parent 4dffdda93a
commit ff1fcafa2d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ public class EntityCache<PK extends Comparable<PK>, E extends IEntity<PK>> imple
}
@Override
public void updateNowUnsafe(E entity) {
public void updateUnsafeNow(E entity) {
var cachePnode = fetchCachePnode(entity, false);
OrmContext.getAccessor().update(cachePnode.getEntity());
var currentTime = TimeUtils.now();
+1 -1
View File
@@ -57,7 +57,7 @@ public interface IEntityCache<PK extends Comparable<PK>, E extends IEntity<PK>>
/**
* 同updateNow(),不会校验更新的线程是否一致
*/
void updateNowUnsafe(E entity);
void updateUnsafeNow(E entity);
/**
* 不会删除数据库中的数据,只会删除缓存数据