lifetime; } public function getKey($id = null) { return "point_gift:{$id}"; } public function getContent($id = null) { $giftRepo = new PointGiftRepo(); $gift = $giftRepo->findById($id); return $gift ?: null; } }