static public T Get(string key, string filelocation)
{
//Try getting the object from cache first
if (!Cache.CacheDic.IsEmpty)
{
SimpleObject simpleObjectFromCache;
if (Cache.CacheDic.TryGetValue(filelocation + key, out simpleObjectFromCache))
{
return((T)simpleObjectFromCache.Value);
}
}
byte[] compressGZipData = Compress.DecompressGZip(Storage.GetFromStorage(key, filelocation));
T umcompressedObject = (T)ConvertHelper.ByteArrayToObject(compressGZipData);
return(umcompressedObject);
}