Ejemplo n.º 1
0
 /// <summary>
 /// Gets one entity from the cache by its key
 /// </summary>
 /// <typeparam name="T">the type of the entity</typeparam>
 /// <param name="key">the key it was cached with</param>
 /// <returns>the entity (as an object) requested</returns>
 public static object Get(LiveCacheKey key)
 {
     return(BackingCache.Get(key));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets one entity from the cache by its key
 /// </summary>
 /// <typeparam name="T">the type of the entity</typeparam>
 /// <param name="key">the key it was cached with</param>
 /// <returns>the entity requested</returns>
 public static T Get <T>(LiveCacheKey key) where T : ILiveData
 {
     return(BackingCache.Get <T>(key));
 }