CachedLocalStorage
Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public class CachedLocalStorage : ILocalStorage
Properties
LocalStorage
View Source
Declaration
public LocalStorage LocalStorage { get; }
Methods
SetItemAsync<T>(String, T)
View Source
Declaration
public async Task SetItemAsync<T>(string name, T value)
Returns
Task
Parameters
Type | Name |
---|---|
System.String | name |
<T> | value |
Type Parameters
T
SetStringAsync(String, String)
View Source
Declaration
public async Task SetStringAsync(string name, string value)
Returns
Task
Parameters
Type | Name |
---|---|
System.String | name |
System.String | value |
GetCachedString(String)
View Source
Declaration
public string GetCachedString(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
GetCachedItem<T>(String)
View Source
Declaration
public T GetCachedItem<T>(string name)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | name |
Type Parameters
T
GetStringAsync(String)
View Source
Declaration
public async Task<string> GetStringAsync(string name)
Returns
Task<System.String>
Parameters
Type | Name |
---|---|
System.String | name |
GetItemAsync<T>(String)
View Source
Declaration
public async Task<T> GetItemAsync<T>(string name)
Returns
Task<<T>>
Parameters
Type | Name |
---|---|
System.String | name |
Type Parameters
T
RemoveAsync(String)
View Source
Declaration
public async Task RemoveAsync(string name)
Returns
Task
Parameters
Type | Name |
---|---|
System.String | name |