Abp.Runtime.Caching.ICache.Get(string, System.Func)

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

2 Examples 7

1. Example

View license
public TValue Get(TKey key, Func<TKey, TValue> factory)
        {
            return InternalCache.Get(key, factory);
        }

2. Example

View license
public int SetGetValue(int value)
            {
                return CacheManager
                    .GetCache("MyClientPropertyInjectsCache")
                    .Get("A", () =>
                    {
                        return value;
                    });
            }