Created
February 19, 2018 14:45
-
-
Save mwidmann/478b6b1b2b316f926dd9770f146f888a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
echo "Loading autoloader..."; | |
require '/opt/app-root/src/vendor/autoload.php'; | |
echo "Registering predis..."; | |
Predis\Autoloader::register(); | |
echo "Creating client..."; | |
// Parameters passed using a named array: | |
$client = new Predis\Client([ | |
'host' => '**DNS**', | |
'port' => **PORT**, | |
'password' => '**PASSWORD**' | |
]); | |
echo "Setting value..."; | |
$value = $client->set('test','testie'); | |
echo "Getting value..."; | |
$value = $client->get('test'); | |
echo "done"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment