private Spring.Caching.ICache cache; private Spring.Caching.ICache SpringCache { get { if (cache == null) cache = (Spring.Caching.ICache)ctx.GetObject("AspNetCache"); return cache; } set { cache = value; } }
if (SpringCache.Get("CcrDateTimeHelper_Cache") == null) { SpringCache.Insert("CcrDateTimeHelper_Cache", new List<CcrDateTimeHelper>()); }
List<CcrDateTimeHelper> olds = SpringCache.Get("CcrDateTimeHelper_Cache") as List<CcrDateTimeHelper>;