Laravel predis, Redis Cloud got error; `SELECT` failed: ERR
40);return response()-json($data, 200);}$data = User::all();Cache::put('users', $data, I followed these steps; I subscribe Redis Cloud for a 30MB free subscription. added predis package to laravel project; composer require predis/predis after all, edited .env file according to the public endpoint and default user password ; .env ; REDIS_CLIENT=predisREDIS_HOST=redis-16388.c250.eu-central-1-1.ec2.cloud.redislabs.comREDIS_PASSWORD=yH********************REDIS_PORT=16388 Code ; public function show(){if (Cache::has('users')) {$data = Cache::get('users');return response()-json($data, I trying to cache all users into Redis. It worked well in local Redis when I try to set up with Redis cloud not worked anymore. For setup, 200);} Error; Predis\Connection\ConnectionException: SELECT failed: ERR DB index is out of range [tcp://redis-16388.c250.eu-central-1-1.ec2.cloud.redislabs.com:16388] in file C:\xampp\htdocs\redisPro\vendor\predis\predis\src\Connection\AbstractConnection.php on line 155 ,。
- 上一篇:《化学工程与装备》期刊
- 下一篇:《化学工程与装备》杂志社网站
相关文章
- VC++运行库丨Visual C++ Redistributable Runtimes All
- CDN加速的安全隐患与解决办法
- Install Redis on macOS
- MacOS 下载安装Redis及图形化客户端(含思维导图)
- 苦心人天不负出自哪里全文是什么
- Ravi Kishan’s ‘Money Follows My Brother’ is now a T
- Ravi Kishan’s Money Follows My Brother Meme Gets Its Own So
- Ravi Kishan’s viral meme ‘Money Follows My Brother’ tur
评论列表