private string GetCacheSql <T>(SqlCacheKey sqlType) { string key = GetCacheKey <T>(sqlType); if (cache.ContainsKey(key)) { return(cache[key]); } return(string.Empty); }
private string GetCacheKey <T>(SqlCacheKey sqlType) { return($"{(short)sqlType}-{typeof(T).FullName}"); }
private void SetCacheSql <T>(SqlCacheKey sqlType, string sql) { string key = GetCacheKey <T>(sqlType); cache[key] = sql; }