+ $logger = new Github\Logger($config);
+
+ // 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");
+ }