Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
namespace ServiceStack.Caching
{
/// <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);
/// <summary>
/// Remove the value at key
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
bool Remove(string key);
/// <summary>
/// Delete all Cache Entries (requires ICacheClient that implements IRemoveByPattern)
/// </summary>
void RemoveAll();
}
}