Laravel Cache facade not storing data in Redis #58833
Replies: 4 comments 1 reply
-
|
If possible, could you share your That would help verify the cache driver, connection, and Redis database configuration. |
Beta Was this translation helpful? Give feedback.
-
|
Who are you man?
…On Mon, 13 Apr, 2026, 19:54 Benjdia Saad, ***@***.***> wrote:
If possible, could you share your config/cache.php and the Redis section
from config/database.php?
That would help verify the cache driver, connection, and Redis database
configuration.
—
Reply to this email directly, view it on GitHub
<#58833 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCMPZGWZYBCY722TWTYHZYT4VTZ77AVCNFSM6AAAAACVFSYZOSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMNJUGUZDCNY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Sorry sorry i understood. I asked about redis in community I remember it.
Yeah I did the redis connection. Thank you for asking
…On Mon, 13 Apr, 2026, 19:57 Tawheed Yahya, ***@***.***> wrote:
Who are you man?
On Mon, 13 Apr, 2026, 19:54 Benjdia Saad, ***@***.***>
wrote:
> If possible, could you share your config/cache.php and the Redis section
> from config/database.php?
>
> That would help verify the cache driver, connection, and Redis database
> configuration.
>
> —
> Reply to this email directly, view it on GitHub
> <#58833 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BCMPZGWZYBCY722TWTYHZYT4VTZ77AVCNFSM6AAAAACVFSYZOSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMNJUGUZDCNY>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
|
are you using docker ? you have - |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋 I’m facing an issue with Laravel cache and Redis. Here are the details: OS: Ubuntu PHP: PHP 8.3 Laravel: 12 Redis: installed via apt and also tested with Docker
Redis PHP extension: php-redis installed
What I did:
Set Redis as cache store in .env: CACHE_STORE=redis REDIS_HOST=127.0.0.1 REDIS_PORT=6379
Cleared config cache: php artisan optimize:clear
Verified in Tinker: config('cache.default'); // returns "redis"
The problem:
Using the Redis facade works: Redis::set('test', 'ok');
But the Cache facade does not store anything: Cache::put('name', 'yahi', 300); Cache::get('name'); // returns value, but key not visible in redis
I use jwt/tymon To generate token but go to dashboard token not provided
I tried for 1 and half day anyone help to rectify this issue
Beta Was this translation helpful? Give feedback.
All reactions