/// <summary> /// Gets an item from cache /// </summary> /// <param name="key">Unique value which references item in cache</param> /// <returns>Item from cache referenced with key</returns> public async Task <T> GetAsync <T>(string key) { var dataBase = provider.CreateConnection() .GetCacheDataBase(); Validate(key, string.Empty); try { return(await dataBase.GetAsync <T>(key)); } catch (Exception e) { //TODO : Log exception return(default(T)); } }