We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 227c004 commit e47d802Copy full SHA for e47d802
1 file changed
lib/Phpfastcache/Drivers/Mongodb/Driver.php
@@ -185,8 +185,9 @@ protected function driverConnect(): bool
185
$timeout = $this->getConfig()->getTimeout() * 1000;
186
$collectionName = $this->getConfig()->getCollectionName();
187
$databaseName = $this->getConfig()->getDatabaseName();
188
+ $driverOptions = $this->getConfig()->getDriverOptions();
189
- $this->instance = $this->instance ?: new Client($this->buildConnectionURI($databaseName), ['connectTimeoutMS' => $timeout]);
190
+ $this->instance = $this->instance ?: new Client($this->buildConnectionURI($databaseName), ['connectTimeoutMS' => $timeout], $driverOptions);
191
$this->database = $this->database ?: $this->instance->selectDatabase($databaseName);
192
193
if (!$this->collectionExists($collectionName)) {
0 commit comments