W3cubDocs

/Laravel 5.8

RetrievesMultipleKeys

trait RetrievesMultipleKeys (View source)

Methods

array many(array $keys)

Retrieve multiple items from the cache by key.

bool putMany(array $values, int $seconds)

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

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

bool putMany(array $values, int $seconds)

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

Parameters

array $values
int $seconds

Return Value

bool

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