1. Go to this page and download the library: Download jolalau/webman-redis library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jolalau / webman-redis example snippets
composer
use jolalau\WebManRedis\Redis;
use support\Request;
class Index
{
public function test(Request $request)
{
$name = 'test_key';
Redis::set($name, rand());
return response(Redis::get($name));
}
}