(Requirements: PHP 5.4+)
To test how Redis works, run the following script:
<?php $redis = new Redis(); $redis->connect("/home/$mydir[2]/.system/redis.sock"); if (!$redis->get('int') && !$redis->get('string') && !$redis->get('another_string')) { } echo $redis->get('string') . " " . $redis->get('int') . ", " . $redis->get('another_string') . "<br>"; ?>
On first launch, the script writes the current date to Redis and displays it on the screen. On subsequent launches, the script displays the same date read from Redis.