src/Cache/ArrayExpiringCache.php
public function set($key, $value, $ttl = null, $tags = [])
    {
        $ttl = isset($ttl) ? $ttl : $this->lifetimeDefault;
        $expire = time() + $ttl;
        $key = $this->processKey($key);
        $record = $this->packRecord($value);
        $this->addKeyTags($key, $record, $tags);
        $this->storage[$key] = $record;
        $this->_timestamps[$key] = $expire;
        return resolve(true);
    }
public function set($key, $value, $ttl = null, $tags = [])
    {
        $ttl = isset($ttl) ? $ttl : $this->lifetimeDefault;
        $expire = time() + $ttl;
        $key = $this->processKey($key);
        $record = $this->packRecord($value);
        $this->addKeyTags($key, $record, $tags);
        $this->storage[$key] = $record;
        $this->_timestamps[$key] = $expire;
        return resolve(true);
    }
{@inheritdoc}