services/adapters/redis/redis.adapter.js
function init(config) {
    var promises = [];

    if (config.redis) {
        _.each(config.redis.dbs, function (idx, name) {
            promises.push(
                connectToRedis(idx, config.redis)
                    .then(function (remoteCache) {
                        caches[name] = wrapRemoteCache(remoteCache);
                        return true;
                    })
            );
        });
    }

    // initialization done once all connections established
    return Q.all(promises)
        .then(function () {
            return config;
        });
}
function init(config) {
    var promises = [];

    if (config.redis) {
        _.each(config.redis.dbs, function (idx, name) {
            promises.push(
                connectToRedis(idx, config.redis)
                    .then(function (remoteCache) {
                        caches[name] = wrapRemoteCache(remoteCache);
                        return true;
                    })
            );
        });
    }

    // initialization done once all connections established
    return Q.all(promises)
        .then(function () {
            return config;
        });
}
function init ( config ) { var promises = [ ] ; if ( config . redis ) { _ . each ( config . redis . dbs , function ( idx , name ) { promises . push ( connectToRedis ( idx , config . redis ) . then ( function ( remoteCache ) { caches [ name ] = wrapRemoteCache ( remoteCache ) ; return true ; } ) ) ; } ) ; } // initialization done once all connections established return Q . all ( promises ) . then ( function ( ) { return config ; } ) ; }
During the initialization of a pancakes app, this will be called
and all the redis connections will be established.

@param config
@returns {*}
During the initialization of a pancakes app this will be called and all the redis connections will be established .