mirror of
https://github.com/BgaSol/sol-cloud
synced 2026-05-23 09:08:46 +00:00
feat(service): Add cache deletion operation after entity insertion
This commit is contained in:
parent
080255cd9f
commit
6f0111674e
1 changed files with 1 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ public abstract class BaseService<ENTITY extends BaseEntity, PAGE_DTO extends Ba
|
|||
}
|
||||
// 插入实体
|
||||
commonBaseMapper().insert(entity);
|
||||
this.cacheDelete(entity.getId());
|
||||
if (ObjectUtils.isNotEmpty(commonBaseRedissonClient())) {
|
||||
// 清理缓存
|
||||
String key = serviceName + ":" + entity.getClass().getName();
|
||||
|
|
|
|||
Loading…
Reference in a new issue