Skip to content

Commit afe7130

Browse files
fixup! Implement multiple get and put for query cache and query batch
Adjust formatting
1 parent 5d4f46f commit afe7130

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/NHibernate/Async/Cache/IQueryCache.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ public partial interface IQueryCache
2626
/// </summary>
2727
/// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
2828
Task ClearAsync(CancellationToken cancellationToken);
29+
2930
// Since 5.2
3031
[Obsolete("Have the query cache implement IBatchableQueryCache, and use IBatchableQueryCache.Put")]
3132
Task<bool> PutAsync(QueryKey key, ICacheAssembler[] returnTypes, IList result, bool isNaturalKeyLookup, ISessionImplementor session, CancellationToken cancellationToken);
33+
3234
// Since 5.2
3335
[Obsolete("Have the query cache implement IBatchableQueryCache, and use IBatchableQueryCache.Get")]
3436
Task<IList> GetAsync(QueryKey key, ICacheAssembler[] returnTypes, bool isNaturalKeyLookup, ISet<string> spaces, ISessionImplementor session, CancellationToken cancellationToken);

src/NHibernate/Cache/IQueryCache.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public partial interface IQueryCache
2121
/// The underlying <see cref="ICache"/>.
2222
/// </summary>
2323
ICache Cache { get; }
24+
2425
/// <summary>
2526
/// The cache region.
2627
/// </summary>
@@ -30,12 +31,15 @@ public partial interface IQueryCache
3031
/// Clear the cache.
3132
/// </summary>
3233
void Clear();
34+
3335
// Since 5.2
3436
[Obsolete("Have the query cache implement IBatchableQueryCache, and use IBatchableQueryCache.Put")]
3537
bool Put(QueryKey key, ICacheAssembler[] returnTypes, IList result, bool isNaturalKeyLookup, ISessionImplementor session);
38+
3639
// Since 5.2
3740
[Obsolete("Have the query cache implement IBatchableQueryCache, and use IBatchableQueryCache.Get")]
3841
IList Get(QueryKey key, ICacheAssembler[] returnTypes, bool isNaturalKeyLookup, ISet<string> spaces, ISessionImplementor session);
42+
3943
/// <summary>
4044
/// Clean up all resources.
4145
/// </summary>

0 commit comments

Comments
 (0)