/** * Returns all wars. Using this method is not recommended. The number of wars is in the hundreds of thousands, and * the result exceeds the default maximum cacheable data size of memcached, which is 1MB. If you must use it, * consider increasing memcached max item size to 4MB by setting the option "-I 4m" in its configuration. * * @return array in the form ID => href */ public function getWarHrefs() { return $this->client->gatherCached($this->client->getRootEndpoint()->wars->href, function ($war) { return (int) $war->id; }, function ($war) { return $war->href; }, static::WARS_COLLECTION_REPRESENTATION); }