Merge commit '10bd03789c9476674f31506cf17b36442dc23185' into AddingTestsAndActualCaches

* commit '10bd03789c9476674f31506cf17b36442dc23185':
  Fix memory cache lookup handling

Refactored cache to only the functionality required. Made tests work.
Added Mockery test for cache. Made redis test make itself incomplete if Redis server is unavailable.