Class NCacheSession
Inheritance
System.Object
NCacheSession
Assembly: Alachisoft.NCache.CoreSessionStoreProvider.dll
Syntax
public class NCacheSession : ISession
Properties
Id
Declaration
public string Id { get; }
Property Value
Type |
Description |
System.String |
|
IsAvailable
Declaration
public bool IsAvailable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Keys
Declaration
public IEnumerable<string> Keys { get; }
Property Value
Type |
Description |
IEnumerable<System.String> |
|
Methods
AbandonAsync()
Declaration
public Task AbandonAsync()
Returns
Clear()
Declaration
CommitAsync(CancellationToken)
Declaration
public Task CommitAsync(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
LoadAsync(CancellationToken)
Declaration
public Task LoadAsync(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
Remove(String)
Declaration
public void Remove(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Set(String, Byte[])
Declaration
public void Set(string key, byte[] value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Byte[] |
value |
|
TryGetValue(String, out Byte[])
Declaration
public bool TryGetValue(string key, out byte[] value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Byte[] |
value |
|
Returns
Type |
Description |
System.Boolean |
|