swayok / alternative-laravel-cache

Replacements for Laravel's redis and file cache stores that properly implement tagging idea
MIT License
169 stars 26 forks source link

Empty prefix give a pipe character #55

Open peterlembke opened 1 month ago

peterlembke commented 1 month ago

Laravel v10.48.18 (PHP v8.1.2-1ubuntu2.18)

When I set this in my .env file:

CACHE_PREFIX=

The prefix is gone, but I get a pipe character that I did not expect. Is this a bug? Without the package the cache keys do not get a pipe.

vendor/swayok/alternative-laravel-cache/AlternativeLaravelCache/Core/AlternativeCacheStore.php -> setPrefix

Skärmavbild 2024-09-26 kl  11 16 21