cache now using the correct function names

removed die from cache

fixed unit tests

cache->get is problematic