Fixes issues that might arise when inmemory cache is synced with the backing store cache
Merge pull request #11 from vineethtw/sync_fix

[Not ready for merge]  Fixes issues that might arise when inmemory cache is synced with the ba...