CacheTrait
An implementation of CacheInterface for PSR-6 CacheItemPoolInterface classes.
Tags
Table of Contents
Methods
delete()
{@inheritdoc}
    public
                delete(string $key) : bool
    
        Parameters
- $key : string
 
Return values
bool —get()
{@inheritdoc}
    public
                get(string $key, callable $callback[, float|null $beta = null ][, array<string|int, mixed>|null &$metadata = null ]) : mixed
    
        Parameters
- $key : string
 - $callback : callable
 - $beta : float|null = null
 - $metadata : array<string|int, mixed>|null = null
 
Return values
mixed —doGet()
    private
                doGet(CacheItemPoolInterface $pool, string $key, callable $callback, float|null $beta[, array<string|int, mixed>|null &$metadata = null ][, LoggerInterface|null $logger = null ]) : mixed
        
        Parameters
- $pool : CacheItemPoolInterface
 - $key : string
 - $callback : callable
 - $beta : float|null
 - $metadata : array<string|int, mixed>|null = null
 - $logger : LoggerInterface|null = null