Пример #1
0
 /// <summary>
 /// Asynchronously gets the cached value wrapper from the cache
 /// </summary>
 /// <returns>A task containing the cached value wrapper</returns>
 public async Task <CachedValue <T> > GetAsync()
 {
     Execution.ICacheExecutionPlan <T> plan = Cache.CreateExecutionPlan <T>(this);
     return(await plan.ExecuteAsync());
 }
Пример #2
0
 /// <summary>
 /// Gets the cached value wrapper from the cache
 /// </summary>
 /// <returns>The cached value wrapper</returns>
 public CachedValue <T> Get()
 {
     Execution.ICacheExecutionPlan <T> plan = Cache.CreateExecutionPlan(this);
     return(plan.Execute());
 }