You are here

public function CacheBackendMongodb::setMultiple in MongoDB 8

Store multiple items in the persistent cache.

$items = array(
  $cid => array(
    // Required, will be automatically serialized if not a string.
    'data' => $data,
    // Optional, defaults to CacheBackendInterface::CACHE_PERMANENT.
    'expire' => CacheBackendInterface::CACHE_PERMANENT,
    // (optional) The cache tags for this item, see CacheBackendInterface::set().
    'tags' => array(),
  ),
);

Parameters

array $items: An array of cache items, keyed by cid. In the form:

Overrides CacheBackendInterface::setMultiple

File

src/CacheBackendMongodb.php, line 359
Definition of Drupal\mongodb/CacheBackendMongodb.

Class

CacheBackendMongodb
Defines MongoDB cache implementation.

Namespace

Drupal\mongodb

Code

public function setMultiple(array $items) {

  // TODO: Implement setMultiple() method.
}