/** * alist delete at. * @param key (string) * @param index (int) * @return status */ public function alist_delete_at($key, $index) { $result = rmc_alist_delete_at($key, $index); return $result == RomaClient::DELETED ? True : False; }
/** * @brief ALIST operation. (Issue 'alist_delete_at' command) * @param key * @param pos * @return Returns True if success. */ public function alist_delete_at($key, $pos) { $result = rmc_alist_delete_at($this->client_id, $key, $pos, $this->default_timeout); if (is_null($result) || $result == RomaClient::RMC_RET_EXCEPTION) { throw new Exception("rmc_alist_delete_at() failure"); } else { if ($result == RomaClient::RMC_RET_ERROR) { return False; } } return True; }