Implemented some methods of inmem store.
Fixed cache/cachestore ctors