Spec-Zone.ru › Symfony 4.0

FilesystemCache

class FilesystemCache extends AbstractCache implements PruneableInterface

Свойства

FilesystemTrait
FilesystemCommonTrait
AbstractTrait
LoggerAwareTrait

Методы

hasItem($key)

{@inheritdoc}

from AbstractTrait
clear()

{@inheritdoc}

from AbstractTrait
deleteItem($key)

{@inheritdoc}

from AbstractTrait
deleteItems(array $keys)

{@inheritdoc}

from AbstractTrait
bool enableVersioning(bool $enable = true)

Включает/отключает версионирование элементов.

from AbstractTrait
reset()

{@inheritdoc}

from AbstractTrait
static handleUnserializeCallback($class) from AbstractTrait
get($key, $default = null)

{@inheritdoc}

from AbstractCache
set($key, $value, $ttl = null)

{@inheritdoc}

from AbstractCache
getMultiple($keys, $default = null)

{@inheritdoc}

from AbstractCache
setMultiple($values, $ttl = null)

{@inheritdoc}

from AbstractCache
deleteMultiple($keys)

{@inheritdoc}

from AbstractCache
static throwError($type, $message, $file, $line) from FilesystemCommonTrait
__destruct() from FilesystemCommonTrait
bool prune() from FilesystemTrait
__construct(string $namespace = '', int $defaultLifetime, string $directory = null)

Подробности

hasItem($key)

{@inheritdoc}

Параметры

$key

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

Параметры

$key

deleteItems(array $keys)

{@inheritdoc}

Параметры

array $keys

bool enableVersioning(bool $enable = true)

Включает/отключает версионирование элементов.

При включенном версионировании очистка кэша атомарна и не требует перечисления существующих ключей, но старые ключи могут потребовать сборки мусора и дополнительные запросы к обратному элементу.

Вызов этого метода также очищает кэшированную версию пространства имен и, таким образом, заставляет пересинхронизировать ее.

Параметры

bool $enable

Возвращаемое значение

bool предыдущее состояние версионирования

reset()

{@inheritdoc}

static handleUnserializeCallback($class)

Параметры

$class

get($key, $default = null)

{@inheritdoc}

Параметры

$key
$default

set($key, $value, $ttl = null)

{@inheritdoc}

Параметры

$key
$value
$ttl

getMultiple($keys, $default = null)

{@inheritdoc}

Параметры

$keys
$default

setMultiple($values, $ttl = null)

{@inheritdoc}

Параметры

$values
$ttl

deleteMultiple($keys)

{@inheritdoc}

Параметры

$keys

static throwError($type, $message, $file, $line)

Параметры

$type
$message
$file
$line

__destruct()

bool prune()

Возвращаемое значение

bool

__construct(string $namespace = '', int $defaultLifetime, string $directory = null)

Параметры

string $namespace
int $defaultLifetime
string $directory

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Cache/Simple/FilesystemCache.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API