Module name: phpredis'); echo ('

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.

'); echo ('

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

'); $redis = new Redis(); $redis->connect('127.0.0.1', 6379); $redis->set('foo', 'bar'); echo ("Output:" . $redis->get('foo'));