doSetWithExpireIfNotExists example

$this->setWithExpire($key$value$expire);
      return TRUE;
    }
    return FALSE;
  }

  /** * {@inheritdoc} */
  public function setWithExpireIfNotExists($key$value$expire) {
    try {
      return $this->doSetWithExpireIfNotExists($key$value$expire);
    }
    catch (\Exception $e) {
      // If there was an exception, try to create the table.       if ($this->ensureTableExists()) {
        return $this->doSetWithExpireIfNotExists($key$value$expire);
      }
      else {
        throw $e;
      }
    }
  }

  
Home | Imprint | This part of the site doesn't use cookies.