如何使用相同的代码库管理多租户的Laravel文件缓存

Laravel:5.6 Php:7.1

I am having multiple tenants(platforms) application with the single codebase and using the file cache. I need to handle the cache removal for specific platform.

I tried to set the cache config storage path on runtime to set the different cache paths with respect to the platforms. But it got the default settings from config/cache.php once I try to put the cache using the following method

Cache::store('file')->put($key, $data, CACHE_MINUTES);

How do you set cache config? Is it like

config(['cache.stores.file.path'=>$tenantPath]);
Cache::store('file')->put($key, $data, CACHE_MINUTES);