RunTimeApps.Common by Developer.cs

<PackageReference Include="RunTimeApps.Common" Version="1.0.3" />

 ICacheService

public interface ICacheService : IDisposable
void Delete(string key)

Task DeleteAsync(string key)

string GetString(string key, string region = null)

Task<string> GetStringAsync(string key, string region = null)

string[] GetStrings(string[] keys, string region = null)

Task<string[]> GetStringsAsync(string[] keys, string region = null)

T GetValue<T>(string key, string region = null)

Task<T> GetValueAsync<T>(string key, string region = null)

IDictionary<string, T> GetValues<T>(string[] keys)

Task<IDictionary<string, T>> GetValuesAsync<T>(string[] keys)

void SetString(string key, string value, TimeSpan? lifeTime)

void SetString(string key, string value)

Task SetStringAsync(string key, string value, TimeSpan? lifeTime)

Task SetStringAsync(string key, string value)

void SetStrings(KeyValuePair<string, string>[] pairs, TimeSpan? lifeTime)

void SetStrings(KeyValuePair<string, string>[] pairs)

Task SetStringsAsync(KeyValuePair<string, string>[] pairs, TimeSpan? lifeTime)

Task SetStringsAsync(KeyValuePair<string, string>[] pairs)

void SetValue<T>(string key, T value, TimeSpan? lifeTime)

void SetValue<T>(string key, T value, DateTimeOffset? expireTime)

void SetValue<T>(string key, T value)

Task SetValueAsync<T>(string key, T value, TimeSpan? lifeTime)

Task SetValueAsync<T>(string key, T value, DateTimeOffset? expireTime)

Task SetValueAsync<T>(string key, T value)

void SetValues<T>(KeyValuePair<string, T>[] pairs, TimeSpan? lifeTime)

void SetValues<T>(KeyValuePair<string, T>[] pairs)

Task SetValuesAsync<T>(KeyValuePair<string, T>[] pairs, TimeSpan? lifeTime)

Task SetValuesAsync<T>(KeyValuePair<string, T>[] pairs)