RetrievesMultipleKeys

trait RetrievesMultipleKeys (View source)

Methods

array many(array $keys)

Retrieve multiple items from the cache by key.

void putMany(array $values, float|int $minutes)

Store multiple items in the cache for a given number of minutes.

Details

array many(array $keys)

Retrieve multiple items from the cache by key.

Items not found in the cache will have a null value.

Parameters

array $keys

Return Value

array

void putMany(array $values, float|int $minutes)

Store multiple items in the cache for a given number of minutes.

Parameters

array $values
float|int $minutes

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Cache/RetrievesMultipleKeys.html