Skip to main content

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​
TypeName
System.Stringkey
<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​
TypeName
System.Stringkey
Type Parameters​
  • T

Remove(String)​

Remove the value at key

View Source​
Declaration
bool Remove(string key)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey

RemoveAll()​

Delete all Cache Entries (requires ICacheClient that implements IRemoveByPattern)

View Source​
Declaration
void RemoveAll()