skip to Main Content

Php versions – Class 'Redis' not found in Lumen

Lumen Version: 6.0 PHP Version: 7.2 Database Driver & Version: MySql 5.7, Redis Code use IlluminateSupportFacadesRedis; Redis::set($key, $data, 'EX', $expiry); in app.php $app->withFacades(); $app->withEloquent(); $app->register(IlluminateRedisRedisServiceProvider::class); $app->configure('database'); Using the above code gives Class 'Redis' not found error. This error occurs only…

VIEW QUESTION

Redis – Nodejs loop event execution

Hello I am having problems with my setInterval it is only executing only once the if else checks below is my function const redis = require('redis'); const cache = redis.createClient(); require('./execSocket'); function teste(){ cache.dbsize(function(err,res){ if(res){ console.log(res); if(res > 10){ require('./execSql');…

VIEW QUESTION
Back To Top
Search