Skip to content

Commit

Permalink
Updated the example script to be customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrainbow committed Jul 22, 2012
1 parent d75b30e commit c725ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$loader = require_once __DIR__.'/../vendor/autoload.php';
$loader->add('Presque\\Example', __DIR__);

$connection = new Predis\Client('tcp://maureen.local:6379');
$connection = new Predis\Client(isset($_SERVER['REDIS_DSN']) ? $_SERVER['REDIS_DSN'] : 'tcp://127.0.0.1:6379');

$storage = new Presque\Storage\PredisStorage($connection, 'presque');

Expand Down

0 comments on commit c725ecd

Please sign in to comment.