fix redis

This commit is contained in:
3x0k1d 2025-05-05 07:00:00 +03:00
parent 6a44ac1ffd
commit ca192eeb8c

View File

@ -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');