IUpdater¶
-
interface
OCP\Files\Cache\
IUpdater
¶ - Update the cache and propagate changes
Implemented by: OC\Files\Cache\Updater
Source: lib/public/Files/Cache/IUpdater.php#32
Methods¶
-
public
OCP\Files\Cache\IUpdater::
getPropagator
()¶ - Get the propagator for etags and mtime for the view the updater works on
Source: lib/public/Files/Cache/IUpdater.php#39 Returns: \OCP\Files\Cache\IPropagator
Since: 9.0.0
-
public
OCP\Files\Cache\IUpdater::
propagate
($path, $time=null)¶ - Propagate etag and mtime changes for the parent folders of $path up to the root of the filesystem
Source: Parameters: - $path (string) the path of the file to propagate the changes for
- $time (int | null) the timestamp to set as mtime for the parent folders, if left out the current time is used
Since: 9.0.0
-
public
OCP\Files\Cache\IUpdater::
update
($path, $time=null)¶ - Update the cache for $path and update the size, etag and mtime of the parent folders
Source: Parameters: - $path (string)
- $time (int)
Since: 9.0.0
-
public
OCP\Files\Cache\IUpdater::
remove
($path)¶ - Remove $path from the cache and update the size, etag and mtime of the parent folders
Source: Parameters: - $path (string)
Since: 9.0.0
-
public
OCP\Files\Cache\IUpdater::
renameFromStorage
($sourceStorage, $source, $target)¶ - Rename a file or folder in the cache and update the size, etag and mtime of the parent folders
Source: Parameters: - $sourceStorage (
OCP\Files\Storage\IStorage
) - $source (string)
- $target (string)
Since: 9.0.0
- $sourceStorage (