code: 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;
      }
docs: @param string $key
  @param \DateTime $time
  
  @return bool