Feb 18, 2018
0
Level 1
Cache seem volatile
Hello guys, I am building An API with lumen and I am trying to use cache, I have the used the command to make a cache migration and set CACHE_DRIVER= database in the. env file.
php artisan cache:table
And
php artisan migrate
I also added something to the cache using the remember method
$value = Cache::remember('users', 22*60, function () {
return DB::table('users')->get();
});
When I check the cache table in the database, nothing gets stored. And also when I commented the remember method and used the below
$value = Cache::get('users');
I still can't get anything from the cache. Are cache variables? Please help me
Please or to participate in this conversation.