Skip to content

Commit ab5b465

Browse files
fixup! Replace ICache interface by a CacheBase class
Fix CacheBase retrieval
1 parent cf36028 commit ab5b465

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NHibernate/Async/Engine/BatchFetchQueue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ internal async Task<object[]> GetCollectionBatchAsync(ICollectionPersister colle
6464
// List of collection entries that haven't been checked for their existance in the cache. Besides the collection entry,
6565
// the index where the entry was found is also stored in order to correctly order the returning keys.
6666
var collectionKeys = new List<KeyValuePair<KeyValuePair<CollectionEntry, IPersistentCollection>, int>>(batchSize);
67-
var batchableCache = collectionPersister.Cache?.Cache as CacheBase;
67+
var batchableCache = collectionPersister.Cache?.GetCacheBase();
6868

6969
if (!batchLoadableCollections.TryGetValue(collectionPersister.Role, out var map))
7070
{

src/NHibernate/Engine/BatchFetchQueue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ internal object[] GetCollectionBatch(ICollectionPersister collectionPersister, o
235235
// List of collection entries that haven't been checked for their existance in the cache. Besides the collection entry,
236236
// the index where the entry was found is also stored in order to correctly order the returning keys.
237237
var collectionKeys = new List<KeyValuePair<KeyValuePair<CollectionEntry, IPersistentCollection>, int>>(batchSize);
238-
var batchableCache = collectionPersister.Cache?.Cache as CacheBase;
238+
var batchableCache = collectionPersister.Cache?.GetCacheBase();
239239

240240
if (!batchLoadableCollections.TryGetValue(collectionPersister.Role, out var map))
241241
{

0 commit comments

Comments
 (0)