How can I implement caching in a pipeline so that,
1."When I try to write on database and someone tries to read the same database at that same point of time, the fetch should be the latest with no stale data."
2."Can it be implemented to take care of the web services in the same way as the database views"
is it possible through caching? or can you suggest any strategy for designing the same?