Fixes #1186.
Added near-cache clear process to clear operation. Added basic near-cache test.
Merge pull request #1190 from mdogan/fix/3.1/issue-1186

Fixes #1186.