key value based cache

made the get method workable by fetching the key