Last active
May 6, 2017 03:51
-
-
Save xuyuji9000/191cf35af4e4411ac80bfb00b85bba82 to your computer and use it in GitHub Desktop.
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 | |
include_once(realpath(__DIR__ . '/vendor/autoload.php')); | |
Predis\Autoloader::register(); | |
$client = new Predis\Client([ | |
'scheme' => 'tcp', | |
'host' => '127.0.0.1', | |
'port' => 6379, | |
]); | |
$client->set('foo', 'bar'); | |
$value = $client->get('foo'); | |
var_dump($value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
update redis with named array