cache = $cache; $this->columnRestrictionModel = $columnMoveRestrictionModel; } /** * Proxy method to get sortable columns * * @param int $project_id * @param string $role * @return array|mixed */ public function getAllByRole($project_id, $role) { $key = $this->cachePrefix.$project_id.$role; $columnRestrictions = $this->cache->get($key); if ($columnRestrictions === null) { $columnRestrictions = $this->columnRestrictionModel->getAllByRole($project_id, $role); $this->cache->set($key, $columnRestrictions); } return $columnRestrictions; } }