Added in memory cache layer
Make cache swapping optional
Merge pull request #3 from andreiashu/master

Added in memory cache layer