Support the ongoing development of Laravel.io →
posted 8 years ago
Cache

Hi! How can I override all exception(at least for 'get' command) from redis in laravel? In my app cache is using almost everywhere, so I would like to have NULL instead of Exception if connection lost for such action: Redis::get("stats.month")

Last updated 3 years ago.
0

try this may be fix it

@Redis::get(...)

Reference http://grandcondom.com

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

morenDev morendev Joined 9 Aug 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.