cache = new DbStatementCache($dbConn); } public function getApp(string $appId): ?AppInfo { $stmt = $this->cache->get('SELECT app_id, app_name, UNIX_TIMESTAMP(app_created), app_size_limit, app_allow_size_multiplier, app_expiry FROM prm_applications WHERE app_id = ?'); $stmt->addParameter(1, $appId); $stmt->execute(); $result = $stmt->getResult(); return $result->next() ? new AppInfo($result) : null; } }