Cache\Adapter\Memcache\MemcacheCachePool::storeItemInCache PHP Method

storeItemInCache() protected method

protected storeItemInCache ( Psr\Cache\CacheItemInterface $item, $ttl )
$item Psr\Cache\CacheItemInterface
    protected function storeItemInCache(CacheItemInterface $item, $ttl)
    {
        $data = serialize([true, $item->get(), []]);
        return $this->cache->set($item->getKey(), $data, 0, $ttl ?: 0);
    }