Exemplo n.º 1
0
 /**
  * Performs a background save.
  *
  * @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/bgsave
  * @example $redis->bgSave();
  */
 public function bgSave()
 {
     try {
         return $this->connection->bgSave();
     } catch (Exception $e) {
         return $this->handleException($e, __FUNCTION__, func_get_args());
     }
 }
Exemplo n.º 2
0
 /**
  * Performs a background save.
  *
  * @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/bgsave
  * @example $redis->bgSave();
  */
 public function bgSave()
 {
     $this->appendToLog('BGSAVE');
     return $this->connection->bgSave();
 }