feat: add CachedService with cached collections and delta

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-10-07 22:02:45 -04:00
parent 4e12d41ee9
commit 852ead324f
10 changed files with 750 additions and 215 deletions
+10
View File
@@ -55,6 +55,16 @@ class LiveService extends ServiceBase
{
private LiveMailService $mailService;
/**
* @param LiveMailService|null $mailService share an existing IMAP connection (e.g. CachedService); created on demand otherwise
*/
public function __construct(?LiveMailService $mailService = null)
{
if ($mailService !== null) {
$this->mailService = $mailService;
}
}
public function collectionList(string|int|null $location, ?IFilter $filter = null, ?ISort $sort = null): array
{
$this->initialize();