/** * alist clear. * @param key (string) * @return status */ public function alist_clear($key) { $result = rmc_alist_clear($key); return $result == RomaClient::CLEARED ? True : False; }
/** * @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; }