Here are the examples of the csharp api class Abp.Runtime.Caching.ICache.GetOrDefaultAsync(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
public static async Task<TValue> GetOrDefaultAsync<TKey, TValue>(this ICache cache, TKey key)
            var value = await cache.GetOrDefaultAsync(key.ToString());
            if (value == null)
                return default(TValue);

            return (TValue)value;