Skip to content

Instantly share code, notes, and snippets.

@xuyuji9000
Last active May 6, 2017 03:51
Show Gist options
  • Save xuyuji9000/191cf35af4e4411ac80bfb00b85bba82 to your computer and use it in GitHub Desktop.
Save xuyuji9000/191cf35af4e4411ac80bfb00b85bba82 to your computer and use it in GitHub Desktop.
<?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);
@xuyuji9000
Copy link
Author

update redis with named array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment