forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIQueryCache.cs
24 lines (22 loc) · 815 Bytes
/
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
using System.Collections;
using System.Collections.Generic;
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
{
ICache Cache { get; }
string RegionName { get; }
void Clear();
bool Put(QueryKey key, ICacheAssembler[] returnTypes, IList result, bool isNaturalKeyLookup, ISessionImplementor session);
IList Get(QueryKey key, ICacheAssembler[] returnTypes, bool isNaturalKeyLookup, ISet<string> spaces, ISessionImplementor session);
void Destroy();
}
}