Skip to content

Commit

Permalink
Update persistable docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryardley committed Nov 28, 2024
1 parent 7a07fa6 commit ae88643
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ciphernode/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ This worked well especially for objects who's persistable state needs to be deri

Persistable is a struct that connects a repository and some in memory state and ensures that every time the in memory state is mutated that the state is saved to the repository.

Aside from being less verbose it means we now have a centralized point at which we can implement batching should we need in the future and it means we should have less touch points for persistence in future.
This has several benefits:
- Less verbose
- Centralized batching point for logical operations
- Can remove complex "snapshot" traits
- Simpler initialization

```rust

Expand Down

0 comments on commit ae88643

Please sign in to comment.