Here are the examples of the csharp api class Abp.Runtime.Caching.ICache.AsTyped() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
Project: module-zero
Source File: MultiTenantLocalizationDictionaryCacheHelper.cs
Source File: MultiTenantLocalizationDictionaryCacheHelper.cs
public static ITypedCache<string, Dictionary<string, string>> GetMultiTenantLocalizationDictionaryCache(this ICacheManager cacheManager) { return cacheManager.GetCache(CacheName).AsTyped<string, Dictionary<string, string>>(); }
0
2. Example
Project: aspnetboilerplate
Source File: CacheManagerExtensions.cs
Source File: CacheManagerExtensions.cs
public static ITypedCache<TKey, TValue> GetCache<TKey, TValue>(this ICacheManager cacheManager, string name) { return cacheManager.GetCache(name).AsTyped<TKey, TValue>(); }
0
3. Example
Project: aspnetboilerplate
Source File: MultiTenantLocalizationDictionaryCacheHelper.cs
Source File: MultiTenantLocalizationDictionaryCacheHelper.cs
public static ITypedCache<string, Dictionary<string, string>> GetMultiTenantLocalizationDictionaryCache(this ICacheManager cacheManager) { return cacheManager.GetCache(CacheName).AsTyped<string, Dictionary<string, string>>(); }