2019-12-03 13:57:53 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2019-02-18 09:47:54 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-02-18 09:47:54 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Files\Cache;
|
|
|
|
|
|
|
|
|
|
use OCP\Files\Storage\IStorage;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 16.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface ICacheEvent {
|
|
|
|
|
/**
|
|
|
|
|
* @return IStorage
|
|
|
|
|
* @since 16.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getStorage(): IStorage;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return string
|
|
|
|
|
* @since 16.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getPath(): string;
|
|
|
|
|
|
2020-02-13 02:38:33 -05:00
|
|
|
/**
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @since 19.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function setPath(string $path): void;
|
|
|
|
|
|
2019-02-18 09:47:54 -05:00
|
|
|
/**
|
|
|
|
|
* @return int
|
|
|
|
|
* @since 16.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getFileId(): int;
|
2020-11-13 11:04:36 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return int
|
|
|
|
|
* @since 21.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getStorageId(): int;
|
2019-02-18 09:47:54 -05:00
|
|
|
}
|