Skip to content

Redis prefix in Vapor #54367

Closed Answered by liepumartins
liepumartins asked this question in Q&A
Discussion options

You must be logged in to vote

Found config/cache.php also does a prefix, that comes after the config/database.php prefix.
In case of Vapor, this prefix appears to be populated via env var CACHE_PREFIX.

So appending ':' solves my problem:
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_cache'),

'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_cache').':',

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by liepumartins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant