Disallow Prefix on certain cachmekey's larval

Viewed 12

We have a microservice application, and in rare occasions we use the same cache item across multiple microservices. This sounds funny, but laravel adds the application name as a prefix. We want to prevent that for these application wide cache items.

How to disable the laravel application cache prefix?

So this:

Cache::remember('campaigns:global:discovery:en', 3600, 'TEST');

Becomes this:

microservice_1_cache:campaigns:global:discovery:en

And should be:

campaigns:global:discovery:en

0 Answers
Related