@@ -35,8 +35,8 @@ EventManager::getInstance()->unbindEventCallback('onCacheGetItem', 'myCallbackNa
3535```
3636
3737
38- List of active events:
39-
38+ ## List of active events:
39+ ### ItemPool Events
4040- onCacheGetItem(* Callable* ** $callback** )
4141 - ** Callback arguments**
4242 - * ExtendedCacheItemPoolInterface* ** $itemPool**
@@ -139,7 +139,40 @@ List of active events:
139139 - * ExtendedCacheItemPoolInterface::getItems()*
140140 - * ExtendedCacheItemPoolInterface::getItemsByTag()*
141141 - * ExtendedCacheItemPoolInterface::getItemsAsJsonString()*
142+ ### ItemPool Events (Cluster)
143+ - onCacheReplicationSlaveFallback(* Callable* ** $callback** )
144+ - ** Callback arguments**
145+ - * ClusterPoolInterface* ** $self**
146+ - * string* ** $caller**
147+ - ** Scope**
148+ - Cluster pool
149+ - ** Description**
150+ - Allow you to get notified when a Master/Slave cluster switches on slave
151+ - ** Risky Circular Methods**
152+ - N/A
153+
154+ - onCacheReplicationRandomPoolChosen(* Callable* ** $callback** )
155+ - ** Callback arguments**
156+ - * ClusterPoolInterface* ** $self**
157+ - * ExtendedCacheItemPoolInterface* ** $randomPool**
158+ - ** Scope**
159+ - Cluster pool
160+ - ** Description**
161+ - Allow you to get notified when a Random Replication cluster choose a cluster
162+ - ** Risky Circular Methods**
163+ - N/A
142164
165+ - onCacheClusterBuilt(* Callable* ** $callback** )
166+ - ** Callback arguments**
167+ - * AggregatorInterface* ** $clusterAggregator**
168+ - * ClusterPoolInterface* ** $cluster**
169+ - ** Scope**
170+ - Cluster aggregator
171+ - ** Description**
172+ - Allow you to get notified when a cluster is being built
173+ - ** Risky Circular Methods**
174+ - * $clusterAggregator::getCluster()*
175+ ### ItemPool Events
143176- onCacheItemSet(* Callable* ** $callback** )
144177 - ** Callback arguments**
145178 - * ExtendedCacheItemInterface* ** $item**
@@ -173,4 +206,4 @@ List of active events:
173206 - ** Risky Circular Methods**
174207 - * ExtendedCacheItemInterface::expiresAt()*
175208
176- This is an exhaustive list and it will be updated as soon as new events will be added to the Core.
209+ This is an exhaustive list and it will be updated as soon as new events will be added to the Core.
0 commit comments