+ $logger = new Logger($config, $config->github->log);
+
+ // FIXME: configure through app.ini
+ try {
+ $cache = new Github\Storage\Redis("gh-cache");
+ } catch (\Exception $ex) {
+ /* Memcached won't throw an exception */
+ $cache = new Github\Storage\Memcache("gh-cache");
+ }