public static bool TryGetValue <T>(this IScopeLevelCache target, string key, out T value) { var exist = target.TryGetValue(key, out var tempValue); value = (T)tempValue; return(exist); }
public ScopeLevelCacheScopingFactory(IScopeLevelCache scopeLevelCache) { ScopeLevelCache = (ScopeLevelCache)scopeLevelCache; }
public static T GetValue <T>(this IScopeLevelCache target, string key) { return((T)target.GetValue(key)); }
public static T GetOrAdd <T>(this IScopeLevelCache target, string key, Func <string, object> func) { return((T)target.GetOrAdd(key, func)); }