Retrieves the item from memory if it's cached, otherwise from the repository.
The item if it exists, null otherwise.