Cache\Adapter\Apcu\ApcuCachePool::storeItemInCache PHP Method

storeItemInCache() protected method

protected storeItemInCache ( Psr\Cache\CacheItemInterface $item, $ttl )
$item Psr\Cache\CacheItemInterface
    protected function storeItemInCache(CacheItemInterface $item, $ttl)
    {
        if ($this->skipIfCli()) {
            return false;
        }
        if ($ttl < 0) {
            return false;
        }
        return apcu_store($item->getKey(), $item->get(), $ttl);
    }