lifetime; } public function getKey($id = null) { return "access_token:{$id}"; } public function getContent($id = null) { $categoryRepo = new CategoryRepo(); $category = $categoryRepo->findById($id); if (!$category) { return new \stdClass(); } return $category; } }