StorageGlobal

class OC\Files\Cache\StorageGlobal
Handle the mapping between the string and numeric storage ids
Each storage has 2 different ids
a string id which is generated by the storage backend and reflects the configuration of the storage (e.g. ‘smb://user@host/share‘)
and a numeric storage id which is referenced in the file cache

A mapping between the two storage ids is stored in the database and accessible trough this class
Source:lib/private/Files/Cache/StorageGlobal.php#41

Properties

Methods

public OC\Files\Cache\StorageGlobal::__construct($connection)
Source:lib/private/Files/Cache/StorageGlobal.php#48
public OC\Files\Cache\StorageGlobal::loadForStorageIds($storageIds)
Source:

lib/private/Files/Cache/StorageGlobal.php#55

Parameters:
  • $storageIds (string[])
public OC\Files\Cache\StorageGlobal::getStorageInfo($storageId)
Source:

lib/private/Files/Cache/StorageGlobal.php#72

Parameters:
  • $storageId (string)
Returns:

array | null

public OC\Files\Cache\StorageGlobal::clearCache()
Source:lib/private/Files/Cache/StorageGlobal.php#90