Beispiel #1
0
        /// <summary>
        /// Insert a range of new object with the keys provided by IAkavacheObject.
        /// </summary>
        /// <param name="entities">entities to insert</param>
        public virtual async Task InsertRange<T>(IEnumerable<T> entities) where T : class, IKeyProvider
        {
            var dict = entities
                .ToDictionary(k => k.Key, e => e);

            await _blobCache.InsertObjects(dict);
        }
Beispiel #2
0
 public async Task InsertObjecItemsCache(Dictionary <string, string> dicionarioTodo)
 {
     await Cache.InsertObjects(dicionarioTodo);
 }
 public async void InsertKeyPairsIntoCache <T>(Dictionary <string, T> dictionary)
 {
     await Cache.InsertObjects <T>(dictionary);
 }