Added getOrElse method to cache