redis complete
This commit is contained in:
parent
ca192eeb8c
commit
7a858a6f80
@ -1,4 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
echo ('<h3> Module name: phpredis</h3>');
|
||||||
|
echo ('<h4> 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.
|
||||||
|
</h4>');
|
||||||
|
|
||||||
|
echo ('<p>
|
||||||
|
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
|
||||||
|
</p>');
|
||||||
|
|
||||||
|
|
||||||
$redis = new Redis();
|
$redis = new Redis();
|
||||||
$redis->connect('127.0.0.1', 6379);
|
$redis->connect('127.0.0.1', 6379);
|
||||||
$redis->set('foo', 'bar');
|
$redis->set('foo', 'bar');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user