class FileSystemCacheItemPool implements CacheItemPoolInterface (View source)

Methods

__construct(string $path)

Creates a FileSystemCacheItemPool cache that stores values in local storage

CacheItemInterface
getItem(string $key)

{@inheritdoc}

iterable
getItems(array $keys = [])

{@inheritdoc}

bool
save(CacheItemInterface $item)

{@inheritdoc}

bool
hasItem(string $key)

{@inheritdoc}

bool
clear()

{@inheritdoc}

bool
deleteItem(string $key)

{@inheritdoc}

bool
deleteItems(array $keys)

{@inheritdoc}

bool
saveDeferred(CacheItemInterface $item)

{@inheritdoc}

bool
commit()

{@inheritdoc}

Details

__construct(string $path)

Creates a FileSystemCacheItemPool cache that stores values in local storage

Parameters

string $path

The string representation of the path where the cache will store the serialized objects.

CacheItemInterface getItem(string $key)

{@inheritdoc}

Parameters

string $key

Return Value

CacheItemInterface

iterable getItems(array $keys = [])

{@inheritdoc}

Parameters

array $keys

Return Value

iterable

An iterable object containing all the A traversable collection of Cache Items keyed by the cache keys of each item. A Cache item will be returned for each key, even if that key is not found. However, if no keys are specified then an empty traversable MUST be returned instead.

bool save(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

Return Value

bool

bool hasItem(string $key)

{@inheritdoc}

Parameters

string $key

Return Value

bool

bool clear()

{@inheritdoc}

Return Value

bool

bool deleteItem(string $key)

{@inheritdoc}

Parameters

string $key

Return Value

bool

bool deleteItems(array $keys)

{@inheritdoc}

Parameters

array $keys

Return Value

bool

bool saveDeferred(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

Return Value

bool

bool commit()

{@inheritdoc}

Return Value

bool