internal DistributedContentStoreServices(DistributedContentStoreServicesArguments arguments) { Arguments = arguments; bool isGlobalCacheServiceEnabled = DistributedContentSettings.IsMasterEligible && RedisContentLocationStoreConfiguration.AllContentMetadataStoreModeFlags.HasAnyFlag(ContentMetadataStoreModeFlags.Distributed); GlobalCacheServiceConfiguration = CreateOptional( () => isGlobalCacheServiceEnabled, () => CreateGlobalCacheServiceConfiguration()); GlobalCacheService = CreateOptional( () => isGlobalCacheServiceEnabled, () => CreateGlobalCacheService()); RoleObserver = CreateOptional <IRoleObserver>( () => isGlobalCacheServiceEnabled && GlobalCacheService.InstanceOrDefault() is ResilientGlobalCacheService, () => (ResilientGlobalCacheService)GlobalCacheService.InstanceOrDefault()); ContentLocationStoreServices = Create(() => ContentLocationStoreFactory.Instance.Services); ColdStorage = CreateOptional(() => DistributedContentSettings.ColdStorageSettings != null, () => { return(new ColdStorage(Arguments.FileSystem, DistributedContentSettings.ColdStorageSettings, Arguments.DistributedContentCopier)); }); ContentLocationStoreFactory = Create(() => { return(new ContentLocationStoreFactory( new ContentLocationStoreFactoryArguments() { Clock = Arguments.Clock, Copier = Arguments.DistributedContentCopier, ConnectionPool = Arguments.ConnectionPool, Dependencies = new ContentLocationStoreServicesDependencies() { GlobalCacheService = GlobalCacheService.UnsafeGetServiceDefinition().AsOptional <IGlobalCacheService>(), ColdStorage = ColdStorage, RoleObserver = RoleObserver } }, Arguments.RedisContentLocationStoreConfiguration)); }); CacheServiceBlobCheckpointRegistry = CreateOptional( () => DistributedContentSettings.ContentMetadataUseBlobCheckpointRegistry, () => CreateCacheServiceBlobCheckpointRegistry()); RedisWriteAheadEventStorage = Create(() => CreateRedisWriteAheadEventStorage()); CacheServiceCheckpointRegistry = Create(() => CreateCacheServiceCheckpointRegistry()); }
/// <summary> /// Khởi tạo lại cache /// </summary> internal override void RefreshCache() { GlobalCacheService globalcacheservice = new GlobalCacheService(); globalcacheservice.LoadCache(CacheType.DMNhomDichVu); }
/// <summary> /// Khởi tạo lại cache /// </summary> internal override void RefreshCache() { GlobalCacheService globalcacheservice = new GlobalCacheService(); globalcacheservice.LoadCache(CacheType.PatientsObject); }
/// <summary> /// Khởi tạo lại cache /// </summary> internal override void RefreshCache() { GlobalCacheService globalcacheservice = new GlobalCacheService(); globalcacheservice.LoadCache(CacheType.Permission); }
/// <summary> /// Khởi tạo lại cache /// </summary> internal override void RefreshCache() { GlobalCacheService globalcacheservice = new GlobalCacheService(); globalcacheservice.LoadCache(CacheType.DMTinhThanh); }
/// <summary> /// Khởi tạo lại cache /// </summary> internal override void RefreshCache() { GlobalCacheService globalcacheservice = new GlobalCacheService(); globalcacheservice.LoadCache(CacheType.Department); }
/// <summary> /// Khởi tạo lại cache /// </summary> internal override void RefreshCache() { GlobalCacheService globalcacheservice = new GlobalCacheService(); globalcacheservice.LoadCache(CacheType.AssetsCate); }
/// <summary> /// Khởi tạo lại cache /// </summary> internal override void RefreshCache() { GlobalCacheService globalcacheservice = new GlobalCacheService(); globalcacheservice.LoadCache(CacheType.DMQuanHuyen); }
internal virtual void RefreshCache() { GlobalCacheService globalcacheservice = new GlobalCacheService(); globalcacheservice.LoadCache(_cacheType); }
/// <summary> /// Khởi tạo lại cache /// </summary> internal override void RefreshCache() { GlobalCacheService globalcacheservice = new GlobalCacheService(); globalcacheservice.LoadCache(CacheType.SystemConfig); }