engine v0.1.2 Engine.Repository

This module is the Repository for Aggregates, Process Managers, or anything else that has a PID and you want to store and load the state from cache, from some snapshot, replay events from that snapshot or even from the begining. For several reasons we choosed SYN to store pids. Note that the BPE https://github.com/spawnproc/bpe also choosed SYN. http://www.ostinelli.net/an-evaluation-of-erlang-global-process-registries-meet-syn/ https://github.com/ostinelli/syn

Summary

Functions

add_to_cache(id, pid)
get_by_id(id, aggregate, supervisor)
remove_from_cache(id)
save(pid, aggregate)