Пример #1
0
		public void SetCachingEngine(ICacheEngine cacheEngine)
		{
			_cacheEngine = cacheEngine;
			_cacheEngine.AddGroup(new CacheGroupDefinition
			{
				ExpireAfter = TimeSpan.FromMinutes(20),
				Id = "basicSessionManager",
				RollingExpiration = true
			});
		}
Пример #2
0
		public void SetCachingEngine(ICacheEngine cacheEngine)
		{
			_cacheEngine = cacheEngine;
			_cacheEngine.AddGroup(new CacheGroupDefinition
			{
				ExpireAfter = TimeSpan.FromDays(1),
				Id = RAZOR_CACHE_ID,
				RollingExpiration = true
			});
		}