src/Service/Driver/Shmop.php
public function set($key, \DateTime $time)
    {
        $sh = new BlockShmop($this->getIdByKey($key), 10);
        if (!($old_time = $sh->read()) || $old_time < $time->getTimestamp()) {
            $sh->write($time->getTimestamp());
        }

        return true;
    }
public function set($key, \DateTime $time)
    {
        $sh = new BlockShmop($this->getIdByKey($key), 10);
        if (!($old_time = $sh->read()) || $old_time < $time->getTimestamp()) {
            $sh->write($time->getTimestamp());
        }

        return true;
    }
@param string $key
@param \DateTime $time

@return bool