add batch writes in cache.

In this PR, batch writes is added to the in memory cache as mentioned in #182
@vishh I like the idea of making the cache the default entity. In that case, we will merge ``storage/memory`` into ``storage/cache`` and any other storage driver will be a backend of the cache.