In a web service, when we put the responsibility of holding data to repositories, should we also put the responsibility of caching to them? Or it's responsibility of another part?
Also, what about the situations when we use the in-memory storages as a helper? for example when we counting number of post visits per day, and saving them eventually in database, Should it handle on Repository?
Aucun commentaire:
Enregistrer un commentaire