tinson / redis-client
PHP Redis Client
v1.0.1
2019-11-21 07:35 UTC
Requires
- php: >=5.6.4
- ext-sockets: >=5.6
Requires (Dev)
- phpunit/phpunit: 5.7.27
This package is auto-updated.
Last update: 2025-03-21 21:51:23 UTC
README
The Project is a PHP Library implementing redis client.
Quick Start
$config = [
'host' => '127.0.0.1', //optional, default: 127.0.0.1
'port' => 6379, //optional, default: 6379
'timeout' => 1, //optional,default: 1ms
'password' => null, //optional, default: null
'db' => 10, //optional, default: null
];
$client = new \SimpleRedis\Client($config);
$client->set("test", 1);
$res = $client->get("test");
var_dump($res);