The `Cache.add` method in the `Illuminate\Support\Facades\Cache` class is a function used in PHP's Laravel framework to add an item to the cache store only if it does not already exist. This method accepts three parameters: the key to identify the cache item, the value to be stored, and the number of minutes until it expires. If the item already exists in the cache, the method will return `false`; otherwise, it will store the item and return `true`. This method provides a convenient way to add items to the cache without overwriting existing ones.
PHP Illuminate\Support\Facades Cache::add - 16 examples found. These are the top rated real world PHP examples of Illuminate\Support\Facades\Cache::add extracted from open source projects. You can rate examples to help us improve the quality of examples.