Let us consider employee obj is there in cache (Session level cache). An external appln. has updated the employee object which is there in session, now how can I make sure that objects in cache are always in sync with database ?
Please provide your thoughts on this.
Do I need to follow any design pattern here ?