示例#1
0
        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));
        }
示例#3
0
        public override object GetCacheItem(string key, string container = null)
        {
            var entryKey = TicketCacheEntry.GenerateKey(key: key, container: container);

            return(this.GetInternal(entryKey));
        }