/** * alist length. * @param key (string) * @return length/status */ public function alist_length($key) { $result = rmc_alist_length($key); return $result; }
/** * @brief ALIST operation. (Issue 'alist_length' command) * @param key * @return On success new value of the item's data, other than -1. */ public function alist_length($key) { $result = rmc_alist_length($this->client_id, $key, $this->default_timeout); if (is_null($result) || $result == RomaClient::RMC_RET_ALIST_LENGTH_NOT_FOUND) { throw new Exception("rmc_alist_length() failure"); } return $result; }