Permalink
Cannot retrieve contributors at this time
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?
ServiceStack/src/ServiceStack.Interfaces/Caching/ISession.cs
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43 lines (39 sloc)
1.14 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} |