generated from Nodarx/template
feat: implement meta and content cache
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -16,8 +16,8 @@ use KTXF\Mail\Collection\CollectionRoles;
|
||||
/**
|
||||
* IMAP Mail Collection Properties
|
||||
*
|
||||
* Backed by the same internal $data shape as the JMAP provider so that cache
|
||||
* documents are interchangeable with fromStore() / toStore().
|
||||
* Backed by the same internal $data shape as the JMAP provider so that
|
||||
* cache documents are interchangeable with fromCacheMeta() / toCacheMeta().
|
||||
*/
|
||||
class CollectionProperties extends CollectionPropertiesMutableAbstract
|
||||
{
|
||||
@@ -50,14 +50,14 @@ class CollectionProperties extends CollectionPropertiesMutableAbstract
|
||||
return $this;
|
||||
}
|
||||
|
||||
// ── Store (MongoDB cache) ────────────────────────────────────────────────
|
||||
// ── Cache (meta store) ───────────────────────────────────────────────────
|
||||
|
||||
public function toStore(): array
|
||||
public function toCacheMeta(): array
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function fromStore(array $data): static
|
||||
public function fromCacheMeta(array $data): static
|
||||
{
|
||||
$this->data = $data;
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user