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\View cache storage
Throws:\OC\ForbiddenException
Throws:\OC\User\NoUserException
Throws:\OC\ForbiddenException
Throws:\OC\User\NoUserException
public OC\Cache\File::get($key)
Source:

lib/private/Cache/File.php#75

Parameters:
  • $key (string)
Returns:

mixed | null

Throws:

\OC\ForbiddenException

public OC\Cache\File::size($key)
Returns the size of the stored/cached data
Source:

lib/private/Cache/File.php#90

Parameters:
  • $key (string)
Returns:

int

public OC\Cache\File::set($key, $value, $ttl=0)
Source:

lib/private/Cache/File.php#106

Parameters:
  • $key (string)
  • $value (mixed)
  • $ttl (int)
Returns:

bool | mixed

Throws:

\OC\ForbiddenException

public OC\Cache\File::hasKey($key)
Source:

lib/private/Cache/File.php#133

Parameters:
  • $key (string)
Returns:

bool

Throws:

\OC\ForbiddenException

public OC\Cache\File::remove($key)
Source:

lib/private/Cache/File.php#146

Parameters:
  • $key (string)
Returns:

bool | mixed

Throws:

\OC\ForbiddenException

public OC\Cache\File::clear($prefix="")
Source:

lib/private/Cache/File.php#159

Parameters:
  • $prefix (string)
Returns:

bool

Throws:

\OC\ForbiddenException

public OC\Cache\File::gc()
Runs GC
Source:lib/private/Cache/File.php#178
Throws:\OC\ForbiddenException