Skip to main content

cell_memory 1.0.2 copy "cell_memory: ^1.0.2" to clipboard
cell_memory: ^1.0.2 copied to clipboard

Durable memory cells for the Cell framework. File store. No Flutter.

1.0.2 #

  • Add the walk-through (state + save + reopen hydration) so the package ships a runnable example and scores the full 160 pub points on pub.dev.

Memory (1.0.1) #

Patch release — dependency floor only, no API changes.

  • cell: ^3.1.0 — the unified async error-pulse core release.

Memory (1.0.0) #

The first release of cell_memory: durable memory cells over pluggable stores, in the domain-owned-value shape.

  • Domain binding. MemoryCell.open(domain, {id, store, codec, read, hydrate, project, restore, persistInitial, ttl, onConflict, ownsStore, ...}): the domain cell owns the value, the memory cell owns the record. value is a MemorySnapshot (status, revision, generation, flags) — never a T.
  • One mailbox. load, save, resolve, unload, attach, detach, close, and remove run as turns on a single FIFO mailbox; close/unload latch admission and queued turns drain; every admitted command's future completes exactly once. A failed open with an owned store releases it.
  • Compare-based flush. Dirtiness is the codec's canonical payload key against the stored baseline; writes compare-and-swap on (revision, generation); retryable MemoryIoExceptions retry per MemoryWritePolicy.retry; immediate mode is the default with debounced+maxWait and explicit modes.
  • Conflict protocol. fail/overwrite/adopt (default, needs hydrate)/merge policies, resolve(keepLocal|takeRemote|merge), TTL-vanished rows recreate once, and conflicted/resolved/ failed events report the path.
  • Store contract. Schema-2 envelope (kind dropped; required codecVersion, optional expiresAt/sourceCellId/meta; unknown keys and schema 1 are MemoryCorrupt), typed codecs with versions, migrations, and round-trip verification, MemoryDraft/ MemoryVersion/MemoryStoreCapabilities/purgeExpired/retryable errors, and one MemoryCas.decide rule engine shared by the in-memory, file, and Firestore stores.
  • Seams. MemoryCell.allow fails closed for unknown objects, deputies can only narrow, and unmodifiable views complete with UnsupportedError futures.
  • Front doors. remember/rememberState restore through hydrate and follow the domain; restore/persistInitial control the open; injectable clock and virtual-time scheduler for tests.
  • Firestore. cell_memory_firebase implements the same contract: MemoryDraft writes with the shared CAS decision inside the transaction, remove(ifVersion), purgeExpired, and schema-2 firestore.rules.
0
likes
150
points
0
downloads

Documentation

API reference

Publisher

verified publisheropencell.dev

Weekly Downloads

Durable memory cells for the Cell framework. File store. No Flutter.

Repository (GitHub)
View/report issues

License

Apache-2.0, MIT (license)

Dependencies

cell, meta

More

Packages that depend on cell_memory