Documentation

MultiOperationCache extends MultiGetCache, MultiDeleteCache, MultiPutCache

Interface for cache drivers that supports multiple items manipulation.

Tags
link
www.doctrine-project.org

Table of Contents

Methods

deleteMultiple()  : bool
Deletes several cache entries.
fetchMultiple()  : array<string|int, mixed>
Returns an associative array of values for keys is found in cache.
saveMultiple()  : bool
Returns a boolean value indicating if the operation succeeded.

Methods

deleteMultiple()

Deletes several cache entries.

public deleteMultiple(array<string|int, string> $keys) : bool
Parameters
$keys : array<string|int, string>

Array of keys to delete from cache

Return values
bool

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

fetchMultiple()

Returns an associative array of values for keys is found in cache.

public fetchMultiple(array<string|int, string> $keys) : array<string|int, mixed>
Parameters
$keys : array<string|int, string>

Array of keys to retrieve from cache

Return values
array<string|int, mixed>

Array of retrieved values, indexed by the specified keys. Values that couldn't be retrieved are not contained in this array.

saveMultiple()

Returns a boolean value indicating if the operation succeeded.

public saveMultiple(array<string|int, mixed> $keysAndValues[, int $lifetime = 0 ]) : bool
Parameters
$keysAndValues : array<string|int, mixed>

Array of keys and values to save in cache

$lifetime : int = 0

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

Return values
bool

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


        
On this page

Search results