lifetime; } public function getKey($id = null) { return "app:{$id}"; } public function getContent($id = null) { $appRepo = new AppRepo(); $result = $appRepo->findByAppKey($id); return $result ?: null; } }