Created
August 22, 2017 16:09
-
-
Save stockholmux/bf2342a24fd5a80f235f2b323b876fca to your computer and use it in GitHub Desktop.
redis-connection.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'vendor/autoload.php'; | |
$client = new Predis\Client([ | |
/* ... */ | |
]); | |
$client->set('foo', 'bar'); | |
$value = $client->get('foo'); | |
echo "worked? $value" | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment