*/
/**
- * Checks an app before install whether it uses private APIs instead of the
+ * Checks an app before install whether it uses private APIs instead of the
* proper public APIs. If this is set to true it will only allow to install or
* enable apps that pass this check.
*/
'redis' => array(
'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
'port' => 6379,
- 'timeout' => 0.0
+ 'timeout' => 0.0,
+ 'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
),
/**
} else {
$timeout = 0.0; // unlimited
}
+
self::$cache->connect( $host, $port, $timeout );
+
+ if (isset($config['dbindex'])) {
+ self::$cache->select( $config['dbindex'] );
+ }
}
}