ISession
A Users Session
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface ISession
Properties
Item[String]
Store any object at key
View Source
Declaration
object this[string key] { get; set; }
Methods
Set<T>(String, T)
Set a typed value at key
View Source
Declaration
void Set<T>(string key, T value)
Parameters
Type | Name |
---|---|
System.String | key |
<T> | value |
Type Parameters
T
Get<T>(String)
Get a typed value at key
View Source
Declaration
T Get<T>(string key)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | key |
Type Parameters
T
Remove(String)
Remove the value at key
View Source
Declaration
bool Remove(string key)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
RemoveAll()
Delete all Cache Entries (requires ICacheClient that implements IRemoveByPattern)
View Source
Declaration
void RemoveAll()