PHP code example of dsweixin / redis
1. Go to this page and download the library: Download dsweixin/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/ */
dsweixin / redis example snippets
larave5.5版本以上可以不用添加下面操作
'providers' => [
// ...
Redis\PredisServiceProvider::class,
]
'aliases' => [
// ...
'predis' => Redis\Facades\Predis::class,
]
Predis::set($key,$value);