You are here

public function KeyValueStoreExpirable::__construct in MongoDB 8.2

Overrides KeyValueStore::__construct

See also

\Drupal\mongodb_storage\KeyValueStoreExpirable::setTimeService()

File

modules/mongodb_storage/src/KeyValueStoreExpirable.php, line 28

Class

KeyValueStoreExpirable
KeyValueStore provides a KeyValueStoreExpirable as a MongoDB collection.

Namespace

Drupal\mongodb_storage

Code

public function __construct($collection, $storeCollection) {
  parent::__construct($collection, $storeCollection);
  $this
    ->ensureIndexes();
}