@krisi_gjika What I mean is that I do not Cache:: anything manually in my app but that package required change to array just wondering if anyone can tell me the difference between the array and file, where is array stored, in memory?
@aurawindsurfing the array cache driver is an in-memory PHP array that lasts the duration only of the current Request. It is "persisted" in the Illuminate\Cache\ArrayStore class
@tykus It actually lasts until the application's process shuts down. In a standard Laravel setup, a request is pretty much equivalent to an application process though. However, if you have Laravel Octane set up, the behavior changes. The array cache will now live until you restart the Octane server (because it keeps the application instance in memory).
@aurawindsurfing It's a temporary cache. It is often used for unit tests or to avoid executing the same heavy query or logic multiple times during the same request.
@tykus also should be noted that other instances of the application, other requests, jobs, commands, can't access that "cache", since that memory does not belong to them.