PhpArrayCache
class PhpArrayCache implements CacheInterface, PruneableInterface, ResettableInterface
Caches items at warm up time using a PHP array that is stored in shared memory by OPCache since PHP 7.0.
Warmed up items are read-only and run-time discovered items are cached using a fallback adapter.
Traits
Methods
__construct(string $file, CacheInterface $fallbackPool)
No description
static CacheInterface
create($file, CacheInterface $fallbackPool)
This adapter takes advantage of how PHP stores arrays in its latest versions.
get($key, $default = null)
{@inheritdoc}
getMultiple($keys, $default = null)
{@inheritdoc}
has($key)
{@inheritdoc}
delete($key)
{@inheritdoc}
deleteMultiple($keys)
{@inheritdoc}
set($key, $value, $ttl = null)
{@inheritdoc}
setMultiple($values, $ttl = null)
{@inheritdoc}