@@ -66,7 +66,7 @@ internal async Task<object[]> GetCollectionBatchAsync(ICollectionPersister colle
6666 // List of collection entries that haven't been checked for their existance in the cache. Besides the collection entry,
6767 // the index where the entry was found is also stored in order to correctly order the returning keys.
6868 var collectionKeys = new List < KeyValuePair < KeyValuePair < CollectionEntry , IPersistentCollection > , int > > ( batchSize ) ;
69- var batchableCache = collectionPersister . Cache ? . Cache as IBatchableReadCache ;
69+ var batchableCache = collectionPersister . Cache ? . Cache as IBatchableReadOnlyCache ;
7070
7171 if ( ! batchLoadableCollections . TryGetValue ( collectionPersister . Role , out var map ) )
7272 {
@@ -258,7 +258,7 @@ internal async Task<object[]> GetEntityBatchAsync(IEntityPersister persister, ob
258258 // List of entity keys that haven't been checked for their existance in the cache. Besides the entity key,
259259 // the index where the key was found is also stored in order to correctly order the returning keys.
260260 var entityKeys = new List < KeyValuePair < EntityKey , int > > ( batchSize ) ;
261- var batchableCache = persister . Cache ? . Cache as IBatchableReadCache ;
261+ var batchableCache = persister . Cache ? . Cache as IBatchableReadOnlyCache ;
262262
263263 if ( ! batchLoadableEntityKeys . TryGetValue ( persister . EntityName , out var set ) )
264264 {
@@ -412,7 +412,7 @@ private async Task<bool> IsCachedAsync(object collectionKey, ICollectionPersiste
412412 /// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
413413 /// <returns>An array of booleans that contains the result for each key.</returns>
414414 private async Task < bool [ ] > AreCachedAsync ( List < KeyValuePair < EntityKey , int > > entityKeys , int [ ] keyIndexes , IEntityPersister persister ,
415- IBatchableReadCache batchableCache , bool checkCache , CancellationToken cancellationToken )
415+ IBatchableReadOnlyCache batchableCache , bool checkCache , CancellationToken cancellationToken )
416416 {
417417 cancellationToken . ThrowIfCancellationRequested ( ) ;
418418 var result = new bool [ keyIndexes . Length ] ;
@@ -450,7 +450,7 @@ private async Task<bool[]> AreCachedAsync(List<KeyValuePair<EntityKey, int>> ent
450450 /// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
451451 /// <returns>An array of booleans that contains the result for each key.</returns>
452452 private async Task < bool [ ] > AreCachedAsync ( List < KeyValuePair < KeyValuePair < CollectionEntry , IPersistentCollection > , int > > collectionKeys ,
453- int [ ] keyIndexes , ICollectionPersister persister , IBatchableReadCache batchableCache ,
453+ int [ ] keyIndexes , ICollectionPersister persister , IBatchableReadOnlyCache batchableCache ,
454454 bool checkCache , CancellationToken cancellationToken )
455455 {
456456 cancellationToken . ThrowIfCancellationRequested ( ) ;
0 commit comments