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