Predefine the duration of an cache object in the config file

like this:

'cache.vendors' => [
    'extension' => 'json',
    'duration' => 30
],

So you can handle the number of minutes with ->set() easier especially if you use lots of API’s.

I have created an idea issue here.

1 Like

Perfect :slight_smile: