\Doctrine\Common\CacheMultiPutCache

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

Summary

Methods
Constants
saveMultiple()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

saveMultiple()

saveMultiple(array  $keysAndValues, integer  $lifetime) : boolean

Returns a boolean value indicating if the operation succeeded.

Parameters

array $keysAndValues

Array of keys and values to save in cache

integer $lifetime

The lifetime. If != 0, sets a specific lifetime for these cache entries (0 => infinite lifeTime).

Returns

boolean —

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