15 lines
685 B
PHP
15 lines
685 B
PHP
<?php
|
|
include("baseModule.php");
|
|
|
|
$checker = new BaseModule(
|
|
"phpredis",
|
|
"phpredis is a native PHP extension written in C that provides a fast and efficient interface to communicate with a Redis key-value store. It supports most Redis features..",
|
|
"This PHP script check a basic feauteres of the phpredis extension: => Create a Redis client => Connect to a Redis server(Connection data in the script itself) => Stores a key-value pair (foo = bar) => Retrieves and displays the stored value");
|
|
|
|
$checker->printInfo();
|
|
|
|
$redis = new Redis();
|
|
$redis->connect('90.156.203.247', 6379);
|
|
$redis->auth('Ir3Roovu');
|
|
$redis->set('foo', 'bar');
|
|
echo ("Output:" . $redis->get('foo')); |