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