Documentation

FilesystemTagAwareAdapter extends AbstractTagAwareAdapter
in package
implements PruneableInterface Uses FilesystemTrait

Stores tag id <> cache id relationship as a symlink, and lookup on invalidation calls.

Tags
author

Nicolas Grekas p@tchwork.com

author

André Rømcke andre.romcke+symfony@gmail.com

Interfaces, Classes and Traits

PruneableInterface
Interface extends psr-6 and psr-16 caches to allow for pruning (deletion) of all expired cache items.

Table of Contents

TAG_FOLDER  = 'tags'
Folder used for tag symlinks.
__construct()  : mixed
doClear()  : mixed
{@inheritdoc}
doDeleteTagRelations()  : bool
{@inheritdoc}
doDeleteYieldTags()  : iteratable<string|int, mixed>
{@inheritdoc}
doInvalidate()  : bool
{@inheritdoc}
doSave()  : array<string|int, mixed>
{@inheritdoc}
getTagFolder()  : string

Constants

Methods

__construct()

public __construct([string $namespace = '' ], int $defaultLifetime[, string|null $directory = null ][, MarshallerInterface|null $marshaller = null ]) : mixed
Parameters
$namespace : string = ''
$defaultLifetime : int
$directory : string|null = null
$marshaller : MarshallerInterface|null = null
Return values
mixed

doClear()

{@inheritdoc}

protected doClear(string $namespace) : mixed
Parameters
$namespace : string
Return values
mixed

doDeleteTagRelations()

{@inheritdoc}

protected doDeleteTagRelations(array<string|int, mixed> $tagData) : bool
Parameters
$tagData : array<string|int, mixed>
Return values
bool

doDeleteYieldTags()

{@inheritdoc}

protected doDeleteYieldTags(array<string|int, mixed> $ids) : iteratable<string|int, mixed>
Parameters
$ids : array<string|int, mixed>
Return values
iteratable<string|int, mixed>

doInvalidate()

{@inheritdoc}

protected doInvalidate(array<string|int, mixed> $tagIds) : bool
Parameters
$tagIds : array<string|int, mixed>
Return values
bool

doSave()

{@inheritdoc}

protected doSave(array<string|int, mixed> $values, int $lifetime[, array<string|int, mixed> $addTagData = [] ][, array<string|int, mixed> $removeTagData = [] ]) : array<string|int, mixed>
Parameters
$values : array<string|int, mixed>
$lifetime : int
$addTagData : array<string|int, mixed> = []
$removeTagData : array<string|int, mixed> = []
Return values
array<string|int, mixed>

getTagFolder()

private getTagFolder(string $tagId) : string
Parameters
$tagId : string
Return values
string

Search results