mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1432 - Refactor internals for RemoteTransactionEvent / BeanPersistIds ... to not send inserted ids
This commit is contained in:
@@ -680,6 +680,21 @@ final class BeanDescriptorCacheHelp<T> {
|
||||
return bean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a bean from the cache given its Id.
|
||||
*/
|
||||
void beanCacheInvalidate(Collection<Object> ids) {
|
||||
if (beanCache != null) {
|
||||
if (beanLog.isDebugEnabled()) {
|
||||
beanLog.debug(" REMOVE {}({})", cacheName, ids);
|
||||
}
|
||||
beanCache.removeAll(new HashSet<>(ids));
|
||||
}
|
||||
for (BeanPropertyAssocOne<?> imported : propertiesOneImported) {
|
||||
imported.cacheClear();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a bean from the cache given its Id.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user