forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHashtableCacheProvider.cs
50 lines (44 loc) · 945 Bytes
/
HashtableCacheProvider.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
47
48
49
50
using System.Collections;
namespace NHibernate.Cache
{
/// <summary>
/// Cache Provider plugin for NHibernate that is configured by using
/// <c>cache.provider_class="NHibernate.Cache.HashtableCacheProvider"</c>
/// </summary>
public class HashtableCacheProvider : ICacheProvider
{
#region ICacheProvider Members
/// <summary>
///
/// </summary>
/// <param name="regionName"></param>
/// <param name="properties"></param>
/// <returns></returns>
public ICache BuildCache(string regionName, IDictionary properties)
{
return new HashtableCache(regionName);
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public long NextTimestamp()
{
return Timestamper.Next();
}
/// <summary>
///
/// </summary>
/// <param name="properties"></param>
public void Start(IDictionary properties)
{
}
/// <summary>
///
/// </summary>
public void Stop()
{
}
#endregion
}
}