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 in-memory storages as a helper? for example when we counting number of posts' visits per day and saving them eventually in database, Should it handle on Repository?
