\OCP\Files\CacheIUpdater

Update the cache and propagate changes

Summary

Methods
Constants
getPropagator()
propagate()
update()
remove()
renameFromStorage()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getPropagator()

getPropagator() : \OCP\Files\Cache\IPropagator

Get the propagator for etags and mtime for the view the updater works on

Returns

\OCP\Files\Cache\IPropagator

propagate()

propagate(string  $path, integer|null  $time = null) 

Propagate etag and mtime changes for the parent folders of $path up to the root of the filesystem

Parameters

string $path

the path of the file to propagate the changes for

integer|null $time

the timestamp to set as mtime for the parent folders, if left out the current time is used

update()

update(string  $path, integer  $time = null) 

Update the cache for $path and update the size, etag and mtime of the parent folders

Parameters

string $path
integer $time

remove()

remove(string  $path) 

Remove $path from the cache and update the size, etag and mtime of the parent folders

Parameters

string $path

renameFromStorage()

renameFromStorage(\OCP\Files\Storage\IStorage  $sourceStorage, string  $source, string  $target) 

Rename a file or folder in the cache and update the size, etag and mtime of the parent folders

Parameters

\OCP\Files\Storage\IStorage $sourceStorage
string $source
string $target