Redis prefix in Vapor #54367
-
When looking at keys via redis-cli one can see that keys look like
"laravel_database" comes from default prefix Problem is that myapp-production and keyname are concatenated without a colon. I can change prefix to include a colon, but that only changes |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found So appending ':' solves my problem:
|
Beta Was this translation helpful? Give feedback.
Found
config/cache.php
also does a prefix, that comes after theconfig/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').':',