/**
  * {@inheritdoc}
  */
 protected function createLock()
 {
     try {
         $ttl = null;
         if (isset($this->options['ttl']) && $this->options['ttl'] !== 0) {
             $now = new \Datetime('now');
             $ttl = $this->options['ttl'];
             $ttl = $now->modify(sprintf('+%s seconds', $ttl))->format('Y-m-d H:i:s');
         }
         $status = $this->queryDriver->insertQuery($ttl);
     } catch (\Exception $e) {
         $status = false;
     }
     return $status;
 }