File¶
-
class
OC\Cache\File¶ Source: lib/private/Cache/File.php#39 Implements: OCP\ICache
Properties¶
-
protected static property
OC\Cache\File::$storage¶ Source: lib/private/Cache/File.php#42 Type: \OC\Files\View
Methods¶
-
protected
OC\Cache\File::getStorage()¶ - Returns the cache storage for the logged in user
Source: lib/private/Cache/File.php#51 Returns: \OC\Files\Viewcache storageThrows: \OC\ForbiddenExceptionThrows: \OC\User\NoUserExceptionThrows: \OC\ForbiddenExceptionThrows: \OC\User\NoUserException
-
public
OC\Cache\File::get($key)¶ Source: Parameters: - $key (string)
Returns: mixed | null
Throws:
-
public
OC\Cache\File::size($key)¶ - Returns the size of the stored/cached data
Source: Parameters: - $key (string)
Returns: int
-
public
OC\Cache\File::set($key, $value, $ttl=0)¶ Source: Parameters: - $key (string)
- $value (mixed)
- $ttl (int)
Returns: bool | mixed
Throws:
-
public
OC\Cache\File::hasKey($key)¶ Source: Parameters: - $key (string)
Returns: bool
Throws:
-
public
OC\Cache\File::remove($key)¶ Source: Parameters: - $key (string)
Returns: bool | mixed
Throws:
-
public
OC\Cache\File::clear($prefix="")¶ Source: Parameters: - $prefix (string)
Returns: bool
Throws:
-
public
OC\Cache\File::gc()¶ - Runs GC
Source: lib/private/Cache/File.php#178 Throws: \OC\ForbiddenException