Factories for aggregate root cache and snapshot storage