trait RetrievesMultipleKeys

Fallback implementations for stores without native multi-key operations.

Stores should provide native many() / putMany() implementations when their backend supports batching. Do not use this on repository wrappers such as TaggedCache, where Repository::many() preserves events, sentinels, defaults, and wrapper-store raw reads.

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

at line 21
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

at line 40
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