The Lumen cache drivers utilize the exact same code as the full Laravel cache drivers. as the documentation of lumen says https://lumen.laravel.com/docs/5.2/cache
Feb 1, 2017
5
Level 1
[LUMEN 5.4] Class 'Memcached' not found
Hello everyone. I'm using Lumen 5.4 (PHP 5.6.30 used, XAMPP on Windows). When I try to run php artisan, I get this error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Memcached' not found
I also tried on Ubuntu, but same result. Also tried to re-download vendor packages.
.env:
APP_ENV=local
APP_DEBUG=true
APP_KEY=mdkalaniasaohabwhwydu6782usjn
APP_TIMEZONE=UTC
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=tvprogram_api
DB_USERNAME=root
DB_PASSWORD=
CACHE_DRIVER=memcached
QUEUE_DRIVER=sync
It works pretty well with Lumen 5.3 and the same .env
EDIT: I installed memcached, and it works now. But I don't understand how it worked with Lumen 5.3 without memcached. Anyone?
Level 1
In Lumen 5.4 just replace the CACHE_DRIVER=file in .env file, the artisan command will work perfectly, But you will not get all the command as same as laravel.
4 likes
Please or to participate in this conversation.