public Task <object> Get(string key, string container = null) { if (cache.TryGetValue(TicketCacheEntry.GenerateKey(key: key, container: container), out CacheEntry entry)) { return(Task.FromResult(entry.Value)); } return(Task.FromResult <object>(null)); }
public Task <object> Get(string key, string container = null) { var entryKey = TicketCacheEntry.GenerateKey(key: key, container: container); return(GetInternal(entryKey)); }
public override object GetCacheItem(string key, string container = null) { var entryKey = TicketCacheEntry.GenerateKey(key: key, container: container); return(this.GetInternal(entryKey)); }