I would consider raising an exception if it is not in the cache. Here, the point is to do no computation. It is unclear what the best behavior is.