using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Diagnostics; using Microsoft.ApplicationServer.Caching; public class Store { public static DataCacheFactory dataCacheFactory = new DataCacheFactory(); public static DataCacheFactoryConfiguration dataCacheFactoryConfiguration = new DataCacheFactoryConfiguration(); public static DataCache dataCache; public Store() { dataCacheFactoryConfiguration = new DataCacheFactoryConfiguration { ChannelOpenTimeout = new TimeSpan(0, 10, 0), RequestTimeout = new TimeSpan(0, 10, 0) }; dataCacheFactory = new DataCacheFactory(dataCacheFactoryConfiguration); dataCache = dataCacheFactory.GetDefaultCache(); StoreCacheRecord(); } public void StoreCacheRecord() { if (dataCache.Get("cache-key") == null) { dataCache.Put("cache-key", "Record has more than 500+ rows", TimeSpan.FromSeconds(1200)); //<--error } } }</es0006></errca0017>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)