interface MultiPutCache (View source)

deprecated

Interface for cache drivers that allows to put many items at once.

Methods

bool
saveMultiple(array $keysAndValues, int $lifetime = 0)

Returns a boolean value indicating if the operation succeeded.

Details

bool saveMultiple(array $keysAndValues, int $lifetime = 0)

Returns a boolean value indicating if the operation succeeded.

Parameters

array $keysAndValues Array of keys and values to save in cache
int $lifetime The lifetime. If != 0, sets a specific lifetime for these cache entries (0 => infinite lifeTime).

Return Value

bool TRUE if the operation was successful, FALSE if it wasn't.