Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Farshad's avatar

change laravel cache key

I have to app the first is api and the second is website. I'm cacheing data on the redis and when I'm cacheing the data lumen and laravel both put one string like 'lumen:cache' at the start of cache key name

How I could change the lumen cache key that laravel append to my cache key

0 likes
1 reply
skauk's avatar
skauk
Best Answer
Level 8

This is done with cache.prefix configuration key. Lumen comes with very basic configuration, so it is up to you where do you set it. In Laravel, it is set in config/cache.php.

1 like

Please or to participate in this conversation.