56 $this->sites[$site->getGlobalId()] = $site;
71 foreach (
$sites as $site ) {
90 if ( isset( $this->sites[$globalId] ) ) {
91 return $this->sites[$globalId];
110 return new SiteList( $this->sites );
In-memory SiteStore implementation, storing sites in an associative array.
saveSite(Site $site)
Saves the provided site.
getSite( $globalId, $source='cache')
Returns the site with provided global id, or null if there is no such site.
saveSites(array $sites)
Saves the provided sites.
clear()
Deletes all sites from the database.
getSites( $source='cache')
Returns a list of all sites.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))