Framework: Error while using Cache

Created on 5 Jun 2018  路  3Comments  路  Source: laravel/framework

  • Laravel Version: 5.6.24
  • PHP Version: 7.1.18
  • Database Driver & Version: MySQL
  • Cache Driver: Redis (also tried on default, i.e. file)

Description:

*While using the Cache class, I'm getting the following error. *

{
"message": "Class 'League\Flysystem\Cached\Storage\AbstractCache' not found",
"exception": "Symfony\Component\Debug\Exception\FatalErrorException",
"file": "D:\Documents\Websites\ritechase-web\vendor\laravel\framework\src\Illuminate\Filesystem\Cache.php",
"line": 8,
"trace": []
}

Steps To Reproduce:

Most helpful comment

i think you just need to use fecade library cache not filesystem it work for me

All 3 comments

It sounds like you're using wrong Cache class. If you actually want to use Flysystem's cache, install the league/flysystem-cached-adapter package as suggested in composer.json.

https://github.com/laravel/framework/blob/b15997fa50c2e569ad081d4b3c2a75f8adbfd35e/composer.json#L120

i think you just need to use fecade library cache not filesystem it work for me

Try this:

use Illuminate\Support\Facades\Cache;

Was this page helpful?
0 / 5 - 0 ratings