I have a repository, which at the moment, reads from the database every time it is called. However, the data is only updated once a day, and to improve performance, I'd like the repository to store the data in memory.
When the data is updated, by another application (but same solution), I would like to notify the repository that it should reread the data in the database.
I considered writing a flag to a file, which the repository then reads every time, and rereads the database if true.