storyblok / storyblok-php-client

Storyblok - PHP Client
https://www.storyblok.com
MIT License
33 stars 37 forks source link

Add "default_lifetime" cache option for start using defaultLifetime param for caching #70

Closed roberto-butti closed 1 year ago

roberto-butti commented 1 year ago

Add ttl option in the Caching options for managing the TTL. for example as second parameter of setCache you can set an array of options.

$client->setCache('filesytem', ['path' => 'cache']);

Add an option named default_lifetime option for setting the default lifetime in the cache adapter

$client->setCache('filesytem', ['path' => 'cache', 'default-lifetime' => 3600]);