Exemplo n.º 1
0
        /// <inheritdoc/>
        public Task <Dictionary <CacheItemDefinition, T> > GetAsync <T>(ICollection <CacheItemDefinition> keys)
            where T : class
        {
            GuardDisposed();

            var helper = new MultipleGetHelper(this);

            return(helper.GetAsync <T>(keys));
        }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public Task <Dictionary <CacheItemDefinition, T> > GetOrAddAsync <T>(IEnumerable <CacheItemDefinition> keys,
                                                                             Func <CacheItemDefinition[], Task <Dictionary <CacheItemDefinition, T> > > getActionAsync)
            where T : class
        {
            GuardDisposed();

            var helper = new MultipleGetHelper(this);

            return(helper.GetOrAddAsync <T>(keys, getActionAsync));
        }