protected static function initialise_cachestore_instances(array $stores, cache_definition $definition) {
        $return = array();
        $factory = cache_factory::instance();
        foreach ($stores as $name => $details) {
            $store = $factory->create_store_from_config($name, $details, $definition);
            if ($store !== false) {
                $return[] = $store;
            }
        }
        return $return;
    }
protected static function initialise_cachestore_instances(array $stores, cache_definition $definition) {
        $return = array();
        $factory = cache_factory::instance();
        foreach ($stores as $name => $details) {
            $store = $factory->create_store_from_config($name, $details, $definition);
            if ($store !== false) {
                $return[] = $store;
            }
        }
        return $return;
    }
protected static function initialise_cachestore_instances ( array $ stores , cache_definition $ definition ) { $ return = array ( ) ; $ factory = cache_factory :: instance ( ) ; foreach ( $ stores as $ name => $ details ) { $ store = $ factory -> create_store_from_config ( $ name , $ details , $ definition ) ; if ( $ store !== false ) { $ return [ ] = $ store ; } } return $ return ; }
Internal function for initialising an array of stores against a given cache definition.

@param array $stores
@param cache_definition $definition
@return cache_store[]
Internal function for initialising an array of stores against a given cache definition .