Browse Source
Merge pull request #24113 from nextcloud/extend-cache-events
Merge pull request #24113 from nextcloud/extend-cache-events
extend cache eventspull/24519/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 159 additions and 12 deletions
-
3lib/composer/composer/autoload_classmap.php
-
3lib/composer/composer/autoload_static.php
-
12lib/private/Files/Cache/AbstractCacheEvent.php
-
33lib/private/Files/Cache/Cache.php
-
2lib/private/Files/Cache/CacheEntry.php
-
34lib/public/Files/Cache/CacheEntryInsertedEvent.php
-
34lib/public/Files/Cache/CacheEntryRemovedEvent.php
-
34lib/public/Files/Cache/CacheEntryUpdatedEvent.php
-
5lib/public/Files/Cache/CacheInsertEvent.php
-
5lib/public/Files/Cache/CacheUpdateEvent.php
-
6lib/public/Files/Cache/ICacheEvent.php
@ -0,0 +1,34 @@ |
|||
<?php |
|||
|
|||
declare(strict_types=1); |
|||
/** |
|||
* @copyright Copyright (c) 2020 Robin Appelman <robin@icewind.nl> |
|||
* |
|||
* @license GNU AGPL version 3 or any later version |
|||
* |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU Affero General Public License as |
|||
* published by the Free Software Foundation, either version 3 of the |
|||
* License, or (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU Affero General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU Affero General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
* |
|||
*/ |
|||
|
|||
namespace OCP\Files\Cache; |
|||
|
|||
use OC\Files\Cache\AbstractCacheEvent; |
|||
|
|||
/** |
|||
* Event for when an existing entry in the cache gets inserted |
|||
* |
|||
* @since 21.0.0 |
|||
*/ |
|||
class CacheEntryInsertedEvent extends AbstractCacheEvent implements ICacheEvent { |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
<?php |
|||
|
|||
declare(strict_types=1); |
|||
/** |
|||
* @copyright Copyright (c) 2020 Robin Appelman <robin@icewind.nl> |
|||
* |
|||
* @license GNU AGPL version 3 or any later version |
|||
* |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU Affero General Public License as |
|||
* published by the Free Software Foundation, either version 3 of the |
|||
* License, or (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU Affero General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU Affero General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
* |
|||
*/ |
|||
|
|||
namespace OCP\Files\Cache; |
|||
|
|||
use OC\Files\Cache\AbstractCacheEvent; |
|||
|
|||
/** |
|||
* Event for when an existing entry in the cache gets removed |
|||
* |
|||
* @since 21.0.0 |
|||
*/ |
|||
class CacheEntryRemovedEvent extends AbstractCacheEvent implements ICacheEvent { |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
<?php |
|||
|
|||
declare(strict_types=1); |
|||
/** |
|||
* @copyright Copyright (c) 2020 Robin Appelman <robin@icewind.nl> |
|||
* |
|||
* @license GNU AGPL version 3 or any later version |
|||
* |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU Affero General Public License as |
|||
* published by the Free Software Foundation, either version 3 of the |
|||
* License, or (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU Affero General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU Affero General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
* |
|||
*/ |
|||
|
|||
namespace OCP\Files\Cache; |
|||
|
|||
use OC\Files\Cache\AbstractCacheEvent; |
|||
|
|||
/** |
|||
* Event for when an existing entry in the cache gets updated |
|||
* |
|||
* @since 21.0.0 |
|||
*/ |
|||
class CacheEntryUpdatedEvent extends AbstractCacheEvent implements ICacheEvent { |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue