Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ICache for IRepository #7

Open
alkampfergit opened this issue Jul 12, 2016 · 0 comments
Open

Implement ICache for IRepository #7

alkampfergit opened this issue Jul 12, 2016 · 0 comments
Milestone

Comments

@alkampfergit
Copy link
Contributor

We need to assume that IMemento is an immutable object, this allows for simple Cache usage.

An ICache interface will be introduced and used from Repository. When a Save is ok the Repository can save the IMemento of the aggregate into cache to be reused.

This will allow for simple Decorator pattern that can save cache on durable medium (MongoDB, Redis, Raven) and remove needs Stream Snapshot.

@alkampfergit alkampfergit added this to the v6.0.0 milestone Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant