\OCP\Files\ConfigIUserMountCache

Cache mounts points per user in the cache so we can easily look them up

Summary

Methods
Constants
registerMounts()
getMountsForUser()
getMountsForStorageId()
getMountsForRootId()
getMountsForFileId()
removeUserMounts()
removeUserStorageMount()
remoteStorageMounts()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

registerMounts()

registerMounts(\OCP\IUser  $user, array<mixed,\OCP\Files\Mount\IMountPoint>  $mounts) 

Register mounts for a user to the cache

Parameters

\OCP\IUser $user
array<mixed,\OCP\Files\Mount\IMountPoint> $mounts

getMountsForUser()

getMountsForUser(\OCP\IUser  $user) : array<mixed,\OCP\Files\Config\ICachedMountInfo>

Get all cached mounts for a user

Parameters

\OCP\IUser $user

Returns

array<mixed,\OCP\Files\Config\ICachedMountInfo>

getMountsForStorageId()

getMountsForStorageId(integer  $numericStorageId) : array<mixed,\OCP\Files\Config\ICachedMountInfo>

Get all cached mounts by storage

Parameters

integer $numericStorageId

Returns

array<mixed,\OCP\Files\Config\ICachedMountInfo>

getMountsForRootId()

getMountsForRootId(integer  $rootFileId) : array<mixed,\OCP\Files\Config\ICachedMountInfo>

Get all cached mounts by root

Parameters

integer $rootFileId

Returns

array<mixed,\OCP\Files\Config\ICachedMountInfo>

getMountsForFileId()

getMountsForFileId(integer  $fileId) : array<mixed,\OCP\Files\Config\ICachedMountInfo>

Get all cached mounts that contain a file

Parameters

integer $fileId

Returns

array<mixed,\OCP\Files\Config\ICachedMountInfo>

removeUserMounts()

removeUserMounts(\OCP\IUser  $user) 

Remove all cached mounts for a user

Parameters

\OCP\IUser $user

removeUserStorageMount()

removeUserStorageMount(  $storageId, string  $userId) : mixed

Remove all mounts for a user and storage

Parameters

$storageId
string $userId

Returns

mixed

remoteStorageMounts()

remoteStorageMounts(  $storageId) : mixed

Remove all cached mounts for a storage

Parameters

$storageId

Returns

mixed