How can I update the server cache when I perform a mutation?

Is it possible to update the cache on the server side before the maxAge timeout?
What I want to achieve is that when I update the data on the client or add new data, the cache is updated so that I can get the data from the cache and not from the database.