trait CacheTrait

An implementation of CacheInterface for PSR-6 CacheItemPoolInterface classes.

Methods

get(string $key, callable $callback, float $beta = null, array $metadata = null)

{@inheritdoc}

bool
delete(string $key)

{@inheritdoc}

Details

get(string $key, callable $callback, float $beta = null, array $metadata = null)

{@inheritdoc}

Parameters

string $key
callable $callback
float $beta
array $metadata

bool delete(string $key)

{@inheritdoc}

Parameters

string $key

Return Value

bool