lifetime; } public function getKey($id = null) { return "question:{$id}"; } public function getContent($id = null) { $questionRepo = new QuestionRepo(); $question = $questionRepo->findById($id); return $question ?: null; } }