Beispiel #1
0
 /**
  * Performs a synchronous save. Do not use this command in production, as it will block all
  * other clients from accessing the server while the save is performed! Use bgsave instead.
  *
  * @return bool: TRUE in case of success, FALSE in case of failure.
  * If a save is already running, this command will fail and return FALSE.
  * @link http://redis.io/commands/save
  * @example $redis->save();
  */
 public function save()
 {
     try {
         return $this->connection->save();
     } catch (Exception $e) {
         return $this->handleException($e, __FUNCTION__, func_get_args());
     }
 }
 /**
  * Performs a synchronous save. Do not use this command in production, as it will block all
  * other clients from accessing the server while the save is performed! Use bgsave instead.
  *
  * @return bool: TRUE in case of success, FALSE in case of failure.
  * If a save is already running, this command will fail and return FALSE.
  * @link http://redis.io/commands/save
  * @example $redis->save();
  */
 public function save()
 {
     $this->appendToLog('SAVE');
     return $this->connection->save();
 }