示例#1
0
文件: RomaClient.php 项目: keiju/roma
 /**
  * alist delete.
  * @param key   (string)
  * @param value (string)
  * @return status
  */
 public function alist_delete($key, $value)
 {
     $result = rmc_alist_delete($key, $value);
     return $result == RomaClient::DELETED ? True : False;
 }
示例#2
0
 /**
  * @brief ALIST operation. (Issue 'alist_delete' command)
  * @param key
  * @param value
  * @return Returns True if success.
  */
 public function alist_delete($key, $value)
 {
     $result = rmc_alist_delete($this->client_id, $key, $value, $this->default_timeout);
     if (is_null($result) || $result == RomaClient::RMC_RET_EXCEPTION) {
         throw new Exception("rmc_alist_delete() failure");
     } else {
         if ($result == RomaClient::RMC_RET_ERROR) {
             return False;
         }
     }
     return True;
 }