forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathISession.cs
More file actions
31 lines (29 loc) · 685 Bytes
/
Copy pathISession.cs
File metadata and controls
31 lines (29 loc) · 685 Bytes
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
namespace ServiceStack.CacheAccess
{
/// <summary>
/// A Users Session
/// </summary>
public interface ISession
{
/// <summary>
/// Store any object at key
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
object this[string key] { get; set; }
/// <summary>
/// Set a typed value at key
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="key"></param>
/// <param name="value"></param>
void Set<T>(string key, T value);
/// <summary>
/// Get a typed value at key
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="key"></param>
/// <returns></returns>
T Get<T>(string key);
}
}