$options);
$this->ttl =
$this->options
['ttl'
] ?? null;
} public function close(): bool
{ return true;
} protected function doDestroy(#[\SensitiveParameter] string $sessionId): bool
{ $this->
getCollection()->
deleteOne([ $this->options
['id_field'
] =>
$sessionId,
]);
return true;
} public function gc(int
$maxlifetime): int|false
{ return $this->
getCollection()->
deleteMany([ $this->options
['expiry_field'
] =>
['$lt' =>
new UTCDateTime()],
])->
getDeletedCount();
}