fix redis
This commit is contained in:
parent
6a44ac1ffd
commit
ca192eeb8c
@ -1,17 +1,5 @@
|
||||
<?php
|
||||
|
||||
use Predis\Client as PredisClient;
|
||||
|
||||
$r = new PredisClient([
|
||||
'scheme' => 'tcp',
|
||||
'host' => '90.156.203.247',
|
||||
'port' => 6379,
|
||||
'password' => 'Ir3Roovu',
|
||||
'database' => 15,
|
||||
]);
|
||||
$r->connect();
|
||||
echo $r->set('foo', 'bar'), PHP_EOL;
|
||||
// >>> OK
|
||||
|
||||
echo $r->get('foo'), PHP_EOL;
|
||||
// >>> bar
|
||||
$redis = new Redis();
|
||||
$redis->connect('127.0.0.1', 6379);
|
||||
$redis->set('foo', 'bar');
|
||||
echo $redis->get('foo');
|
||||
Loading…
x
Reference in New Issue
Block a user