public RefGroupsGlobalCache(
string instanceName,
RefGroupsLocalCache refGroupsLocalCache,
IGlobalCacheLock globalCacheLock,
[OptionalDependencyAttribute] ISharedEventSubscriberFactory? subscriberFactory = null,
[OptionalDependencyAttribute] IUnityDisposableContainer? container = null
)
Public Sub New (
instanceName As String,
refGroupsLocalCache As RefGroupsLocalCache,
globalCacheLock As IGlobalCacheLock,
<OptionalDependencyAttribute> Optional subscriberFactory As ISharedEventSubscriberFactory = Nothing,
<OptionalDependencyAttribute> Optional container As IUnityDisposableContainer = Nothing
)
public:
RefGroupsGlobalCache(
String^ instanceName,
RefGroupsLocalCache^ refGroupsLocalCache,
IGlobalCacheLock^ globalCacheLock,
[OptionalDependencyAttribute] ISharedEventSubscriberFactory^ subscriberFactory = nullptr,
[OptionalDependencyAttribute] IUnityDisposableContainer^ container = nullptr
)
new :
instanceName : string *
refGroupsLocalCache : RefGroupsLocalCache *
globalCacheLock : IGlobalCacheLock *
[<OptionalDependencyAttribute>] ?subscriberFactory : ISharedEventSubscriberFactory *
[<OptionalDependencyAttribute>] ?container : IUnityDisposableContainer
(* Defaults:
let _subscriberFactory = defaultArg subscriberFactory null
let _container = defaultArg container null
*)
-> RefGroupsGlobalCache
Фабрика объектов, выполняющих подписки и уведомления по глобальному событию инвалидации кэша.
Если это значение равно null, то кэш перестаёт быть глобальным и кэширует данные только в текущем объекте.