Ejemplo n.º 1
0
        private static void ReadSettings()
        {
            CachingSettings cachingSettings = GlobalSettingsFacade.GetNamedCaching(CacheName);

            _isEnabled   = cachingSettings.Enabled;
            _maximumSize = cachingSettings.Size;
        }
        static EntityTokenCacheFacade()
        {
            CachingSettings cachingSettings = GlobalSettingsFacade.GetNamedCaching("Entity token parents");

            Enabled = cachingSettings.Enabled;
            MaxSize = cachingSettings.GetSize(DefaultSize);

#if DISABLE_ENTITYTOKEN_CACHE
            Enabled = false;
#endif
        }