mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1222 - Extend L2 ServerCache API with putAll(), getAll() and removeAll() methods
This commit is contained in:
1 parent
c7f4b56dd1
commit
4d0b29624e
7 files changed
+100
-33
No files matched your search
@@ -155,9 +155,7 @@ public class DefaultOrmQueryEngine implements OrmQueryEngine {
|
||||
// load the individual beans into the bean cache
|
||||
BeanDescriptor<T> descriptor = request.getBeanDescriptor();
|
||||
Collection<T> c = result.getActualDetails();
|
||||
for (T bean : c) {
|
||||
descriptor.cacheBeanPut((EntityBean) bean);
|
||||
}
|
||||
descriptor.cacheBeanPutAll(c);
|
||||
}
|
||||
|
||||
request.mergeCacheHits(result);
|
||||
|
||||
Reference in new issue
Block a user