nextcloud/lib/public/Files/Cache/CacheEntriesRemovedEvent.php
Carl Schwan 7100c71166
perf(metadata): Add optimized sharding for metadata deletion
Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-01-28 17:18:33 +01:00

37 lines
793 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Files\Cache;
use OCP\AppFramework\Attribute\Listenable;
use OCP\EventDispatcher\Event;
/**
* Meta-event wrapping multiple CacheEntryRemovedEvent for when an existing
* entry in the cache gets removed.
*
* @since 34.0.0
*/
#[Listenable(since: '34.0.0')]
class CacheEntriesRemovedEvent extends Event {
/**
* @param ICacheEvent[] $cacheEntryRemovedEvents
*/
public function __construct(
private readonly array $cacheEntryRemovedEvents,
) {
Event::__construct();
}
/**
* @return ICacheEvent[]
*/
public function getCacheEntryRemovedEvents(): array {
return $this->cacheEntryRemovedEvents;
}
}