![]() |
I want to use sometimes file and sometimes redis for cache. What is the way to activate sometimes redis cache and sometimes filecache according to the need in a controls?
This solved my problem
PHP Code: $config = config('Cache');
The following code changes the value in the shared Config\Cache instance.
PHP Code: $config = config('Cache'); If you use two Cache service instances at the same time, the following code is better: PHP Code: $config = new \Config\Cache; |
Welcome Guest, Not a member yet? Register Sign In |