Interface IStateStorage
Interface for saving and loading state
Namespace: EPiServer.Personalization.VisitorGroups
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public interface IStateStorage
Properties
IsAvailable
Indicate whether the storage is available.
Declaration
bool IsAvailable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Delete(String)
Delete the saved value for the specific key
Declaration
void Delete(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Load(String)
Load value for the specific key
Declaration
object Load(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Returns
Type | Description |
---|---|
System.Object |
Save(String, Object)
Save value for specific key
Declaration
void Save(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key |
System.Object | value | The value |