UserMountCache

class OC\Files\Config\UserMountCache
Cache mounts points per user in the cache so we can easilly look them up
Source:lib/private/Files/Config/UserMountCache.php#49
Implements:OCP\Files\Config\IUserMountCache

Properties

Methods

public OC\Files\Config\UserMountCache::__construct($connection, $userManager, $logger)
UserMountCache constructor.
Source:

lib/private/Files/Config/UserMountCache.php#85

Parameters:
public OC\Files\Config\UserMountCache::registerMounts($user, $mounts)
Source:lib/private/Files/Config/UserMountCache.php#93
public OC\Files\Config\UserMountCache::getMountsForUser($user)
Source:

lib/private/Files/Config/UserMountCache.php#230

Parameters:
Returns:

\OCP\Files\Config\ICachedMountInfo[]

public OC\Files\Config\UserMountCache::getMountsForStorageId($numericStorageId, $user=null)
Source:

lib/private/Files/Config/UserMountCache.php#252

Parameters:
  • $numericStorageId (int)
  • $user (string | null) limit the results to a single user
Returns:

\OC\Files\Config\CachedMountInfo[]

public OC\Files\Config\UserMountCache::getMountsForRootId($rootFileId)
Source:

lib/private/Files/Config/UserMountCache.php#274

Parameters:
  • $rootFileId (int)
Returns:

\OC\Files\Config\CachedMountInfo[]

public OC\Files\Config\UserMountCache::getMountsForFileId($fileId, $user=null)
Source:

lib/private/Files/Config/UserMountCache.php#323

Parameters:
  • $fileId (int)
  • $user (string | null) optionally restrict the results to a single user
Returns:

\OCP\Files\Config\ICachedMountFileInfo[]

Since:

9.0.0

public OC\Files\Config\UserMountCache::removeUserMounts($user)
Remove all cached mounts for a user
Source:

lib/private/Files/Config/UserMountCache.php#371

Parameters:
public OC\Files\Config\UserMountCache::removeUserStorageMount($storageId, $userId)
Source:lib/private/Files/Config/UserMountCache.php#379
public OC\Files\Config\UserMountCache::remoteStorageMounts($storageId)
Source:lib/private/Files/Config/UserMountCache.php#388
public OC\Files\Config\UserMountCache::getUsedSpaceForUsers($users)
Source:

lib/private/Files/Config/UserMountCache.php#400

Parameters:
  • $users (array)
Returns:

array

public OC\Files\Config\UserMountCache::clear()
Source:lib/private/Files/Config/UserMountCache.php#434