Cache::remember - forever?

Posted 2 years ago by eriktobben

Hi,

I have some settings stored in the database and I want to cache them forever as they don't change often. When the user updates his settings, I delete the cache and add the new version to the cache.

How can I set this method to store the data forever?

´´´ $value = Cache::remember('users', $minutes, function () { return DB::table('users')->get(); }); ´´´

Please sign in or create an account to participate in this conversation.