upon disconnect clear client near-cache
beautify the code
Merge pull request #1167 from gurbuzali/near-cache-invalidation-master

upon disconnect clear client near-cache