forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIQueryCache.cs
46 lines (42 loc) · 1.15 KB
/
IQueryCache.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections;
using Iesi.Collections;
using NHibernate.Engine;
using NHibernate.Type;
namespace NHibernate.Cache
{
/// <summary>
/// Defines the contract for caches capable of storing query results. These
/// caches should only concern themselves with storing the matching result ids.
/// The transactional semantics are necessarily less strict than the semantics
/// of an item cache.
/// </summary>
public interface IQueryCache
{
/// <summary>
///
/// </summary>
void Clear();
/// <summary>
///
/// </summary>
/// <param name="key"></param>
/// <param name="returnTypes"></param>
/// <param name="result"></param>
/// <param name="session"></param>
void Put( QueryKey key, IType[] returnTypes, IList result, ISessionImplementor session );
/// <summary>
///
/// </summary>
/// <param name="key"></param>
/// <param name="returnTypes"></param>
/// <param name="spaces"></param>
/// <param name="session"></param>
/// <returns></returns>
IList Get( QueryKey key, IType[] returnTypes, ISet spaces, ISessionImplementor session );
/// <summary>
///
/// </summary>
void Destroy();
}
}