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_storageCode
public function __construct($collection, $storeCollection) {
parent::__construct($collection, $storeCollection);
$this
->ensureIndexes();
}